Using the user object in Zendesk to show a button to only the 'agent' or 'manager'

1 댓글

  • Ifra Saqlain
    Community Moderator

    Hey,

    You can use this script code to hide post-action only to the agent: 

     if (HelpCenter.user.role== "agent"){
    $(".post-actions.actions").hide();
    }else if (HelpCenter.user.role=="end_user" && "manager" && "anonymous" ){
    $(".post-actions.actions").show();
    }

     

    Thanks

    Team

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공