• I have managed to setup a role “ticket support” and add all necessary capabilities to this role. Then i added the role to all our agents. This works in principle, but in order to allow our agents to also access the main ticket management page:

    /wp-admin/edit.php?post_type=ticket&wpas_status=open

    i have to add the core capability “edit_posts”.
    However adding this capability gives our agents permissions which allow them to access other administration areas as well, like for example “Tools” and “Settings”.

    Is there a better way to fix this problem so that agents can only access the awesome support adminstration pages ?

    https://www.ads-software.com/plugins/awesome-support/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author julien731

    (@julien731)

    Ca you confirm that you have give the edit_ticket capability to those agents?

    Thread Starter Gaia Clary

    (@gaia-clary)

    these are the capabilities that i have added to the role “Ticket Syupport” (that role has been assigned to our agents). However i am not sure if all those capabilities belong to the wpas plugin:

    edit_posts (needed to get full power to the agent)
    settings_ticket
    ticket_taxonomy

    attach_files
    assign_ticket
    close_ticket
    create_ticket
    delete_ticket
    edit_ticket
    reply_ticket
    view_ticket

    edit_other_ticket
    delete_other_ticket
    edit_private_ticket
    view_private_ticket
    delete_private_ticket

    Plugin Author julien731

    (@julien731)

    Here is the list of capabilities agents should have:

    • view_ticket
    • view_private_ticket
    • edit_ticket
    • edit_other_ticket
    • edit_private_ticket
    • assign_ticket
    • close_ticket
    • reply_ticket
    • create_ticket
    • delete_reply
    • attach_files

    No less no more.

    Thread Starter Gaia Clary

    (@gaia-clary)

    i have changed the role settings so that only the capabilities as you mentioned above are enabled. Now the left admin navigation bar only contains the expected buttons (wpas “Tickets” button). However when the agent calls this page:

    /wp-admin/edit.php?post_type=ticket&wpas_status=open

    then the response is:

    “You do not have sufficient permissions to access this page.”

    When i additionally enable the capability: “edit_posts” then the agent can enter into the ticket administration pages but also gets access to other admin areas.

    However, i meanwhile suspect that the problem is not related to wpas itself. I start to believe that another plugin requires the edit_posts capability and clashes somehow with what wpas wants to do.

    Plugin Author julien731

    (@julien731)

    If you could verify this theory by deactivating all other plugins that would be awesome. I will try to test this scenario in my dev environment and see if I can re-create the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Best way to enable agent access capabilities?’ is closed to new replies.