• Resolved avalanche

    (@packerland)


    When I clone the Administrator role, everything in Administrator is not included in the New Cloned Role. I have a few plugins that display in the Administrator, but when I clone, they don’t appear in the new role.

    Also, I want to restrict access to the plugin Contact Form 7 in the new roll, but I can’t seem to find where to do so.

    View of Administrator Role
    View of Administrator Cloned Role

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AAM Plugin

    (@vasyltech)

    Hi @packerland,

    Thank you for the questions. When you clone a role, AAM literally takes all role capabilities and create a new role with them however WordPress core works slightly different. The final list of capabilities for user is a combination of role capabilities, role slug and capabilities that were assigned directly to user.

    Because new role that you created is not names as “Administrator”, it does not have a “administrator” slug and a lot of plugins check if role is “administrator”.

    There is a work around it. Simply create a custom capability “administrator” and make sure that it is checked for your custom role.

    You can also learn more about how to manage access to Backend menu from this article.

    Regards,
    Vasyl

    Thread Starter avalanche

    (@packerland)

    For some reason, I just can’t seem to understand the article. I was able to add the “administrator” capability, and one of the plugins have now appeared. But I can’t seem to understand how to restrict access from Contact Form 7.

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @packerland,

    I understand that you do not understand ?? WordPress can be a little bit confusing sometimes.

    So to manage access to the Contact Form 7 for roles, go to Capabilities tab (https://aamplugin.com/help#capabilities) and create following custom capabilities:

    – wpcf7_read_contact_forms;
    – wpcf7_edit_contact_forms;
    – wpcf7_manage_integration;

    Refresh the page and you’ll see Contact menu on the Backend Menu tab.

    Regards,
    Vasyl

    Thread Starter avalanche

    (@packerland)

    Hi @vasyltech,
    That worked perfect! If I were to come across another plugin like Contact Form 7, with “dynamic capability”, how do I figure out what slug to enter for the custom capability?

    Thread Starter avalanche

    (@packerland)

    Hi @vasyltech,
    I’ve cloned the Administrator Role (named Client Administrator), but I don’t want AAM to show up in the dashboard (Backend Menu). Do I need to add a Capability to remove this?

    As I’ve inquired prior, how do I figure out what slug to enter for the custom capability?

    Plugin Author AAM Plugin

    (@vasyltech)

    @packerland,

    Sorry for the late response. You can check this article to learn more about managing access to the AAM page https://aamplugin.com/help/how-to-manage-access-to-aam-page-for-other-users

    Regards,
    Vasyl

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cloning Administrator’ is closed to new replies.