• Resolved anton5rov

    (@anton5rov)


    Hi,
    I’m looking for a way to allow some role to access the wp-admin page, but not to be able to access the UM menu. Hence I give that role manage_options capability. If I deselect “Can view other member profiles” option and “list_users” capability, the standard “Users” menu disappears from the admin page, but the UM menu is still there and fully functional. In fact, I need the opposite – that role to be able to view the users, but not to be able to change the role permissions through the UM menu. Is that possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @anton5rov

    Could you please provide a screenshot of the “UM Menu” that you’re referring to? You can upload the screenshot via imgur.com and then share the image URL here so we can review it.

    Regards,

    Thread Starter anton5rov

    (@anton5rov)

    As you can see, the given user has almost all admin capabilities restricted. In fact, only “manage_options”, “read” and “edit_dashboard” capabilities are checked. In UM->User Roles->”Can view other member profiles?” is uncheked.
    No “Users” menu item, but “Ultimate Member” is there, accessible and functional.
    All plugins except “Ultimate Member” and “WP Safe Mode” disabled.
    Capture: https://ibb.co/MSwsc99

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @anton5rov

    What happens when you uncheck the “manage_options”? UM registers the Admin Menu with the “manage_options” capability:
    https://github.com/ultimatemember/ultimatemember/blob/master/includes/admin/core/class-admin-menu.php#L147

    Regards,

    • This reply was modified 3 years, 5 months ago by Champ Camba.
    Thread Starter anton5rov

    (@anton5rov)

    Ok, unchecking the “manage options” hides UM menu but also hides “Settings” menu, where some other plugins’s admin panels resides, which I was willing to provide access to to that user role. Regular “Users” menu may be allowed according to “list_users” and other relevant capabilities, without showing the UM menu, which is ok.
    Now I understand better the problem, thanks!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide UM menu from the admin page’ is closed to new replies.