Change WordPress user roles and capabilities Forums Bug Reports Administrator menu access module is not working on a multisite

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8971
    [email protected]
    Participant

    I’m trying to hide some admin menu items for a custom role using the steps from this article:

    Block WordPress Admin Menu Items


    I opened the “Admin menu” for that role, selected the menu items I want to hide, and clicked “Update”. However, when I log in with a user that has only this custom role, all of the menu items are still visible.

    Steps:
    1. Go to Users → User Role Editor.
    2. Select the custom role.
    3. Open “Admin menu”.
    4. Tick the menu items to block.
    5. Click “Update” and save.
    6. Log in as a user with that custom role and open the dashboard.

    Expected result:
    The selected menu items should be hidden for this custom role.

    Actual result:
    All menu items are still visible for this custom role.
    Could you please advise what might prevent the admin menu restrictions from applying to this role (e.g. additional roles, required capabilities, or a setting I may have missed)?

    #8972
    Vladimir
    Keymaster

    Let’s check, if you didn’t granted to this custom user role the ‘ure_manage_options’, ‘ure_admin_menu_access’ user capabilities.

    #8973
    [email protected]
    Participant

    All the specific URE capabilities are currently disabled for this custom role (for example ure_admin_menu_access, ure_edit_roles, etc. are not granted).

    However, the role does have the core manage_options capability, because I need the user to be able to access certain plugin menus that rely on manage_options to be visible. That is exactly why I’m trying to use URE’s Admin Menu feature: I want to keep manage_options so those plugin menus show up, but hide other menus such as Settings (and a few other admin pages) from this role.

    #8974
    Vladimir
    Keymaster

    It’s correct to uses this add-on for user role with ‘manage_options’ user capability.
    Let me know, if you use “Admin menu editor” WordPress plugin? There is the known conflict between it and URE Pro “Admin menu access” add-on.

    #8975
    [email protected]
    Participant

    No, I’m not using any other plugin related to the editor. Just yours!

    #8976
    Vladimir
    Keymaster

    Thanks for the information. If it’s applicable, you may send user credentials with admin privileges to support [at] role-editor.com, in order I try isolate a reason.

    #8978
    [email protected]
    Participant

    I’m sorry but I can’t share credentials for security reasons. Is there another way of checking this?

    #8980
    Vladimir
    Keymaster

    Can you setup development copy without critical data (for example, remove all users and content) where repeat the issue and provide access for the investigation then?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.