• Resolved musicforte

    (@musicforte)


    I have multiple roles for my account (including administrator).

    However, the lesser roles that I also have are not supposed to have access to UpdraftPlus.

    You do not have sufficient permissions to access this admin page.
    Reason: The “Settings → UpdraftPlus Backups” menu item is disabled for the “um_pianist” role.

    I thought that my administrator role would be prioritized, but it is not. I can’t access UpdraftPlus because the other roles that I have.

    How can I correct this without giving the other roles access?

    • This topic was modified 2 years, 4 months ago by musicforte.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    You can edit/change roles by filtering the option_page_capability_updraft-options-group filter (default value: “manage_options”), and setting it to the capability you wish to a user to need to be able to interact with UpdraftPlus. Then any role editor plugin (e.g. User Role Editor) can be used to manipulate that capability.

    Thanks,
    Bryle

    Thread Starter musicforte

    (@musicforte)

    Thanks Bryle,

    I’m afraid I’m not following very well, though.

    I went to the User Role Editor and tried to filter for the capability “option_page_capability_updraft-options-group”

    But I did not see that capability anywhere.

    Could you give me a little more direction on exactly where I can manage that capability?

    Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Apologies.

    ‘option_page_capability_updraft-options-group’ is a filter used in UpdraftPlus. A detailed explanation of WordPress filters can be found here.

    To use this filter, you will need to add a PHP script to your site, such as the one below:

    <?php
    add_filter ( ‘option_page_capability_updraft-options-group’, ‘custom_ud_role_filter’, 10, 1);

    function custom_ud_role_filter($role) {
    return ‘<CAPABILITY>’;
    }

    (replacing with a user capability belonging to the role you wish to give access to. A full list can be found here.)
    This can be added as a .php file to a ‘wp-content/mu-plugins/’ directory on your site (you may have to create this directory).

    Thanks,
    Bryle

    • This reply was modified 2 years, 4 months ago by bcrodua.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t access menu with multiple roles’ is closed to new replies.