• Resolved mattwiz

    (@mattwiz)


    I have edited the user roles so editors, authors, and contributors can add users. However, I don’t want them to be able to edit or create user roles that are a higher level than them (ie. editors can create authors and contributors; authors can create contributors; contributors can create subscribers). Currently, anyone allowed to create a user can make the role whatever they want. Is it possible to limit their ability in that way?

    Secondly, since the client is not too tech savvy, I don’t want anyone other than the admin to see the “Additional Capabilities” section from the user-add and user-edit pages. Is it possible to hide them so they don’t see it?

    Thanks in advance for any help!

    https://wordpress.org/plugins/user-role-editor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Pro version includes ‘Other roles access’ add-on
    https://www.role-editor.com/other-roles-access/
    which allows to setup such restrictions, when user with role1 can not access to the list of roles blocked for that role and even don’t see the users with higher/blocked roles at the users list.

    As about ‘Additional Capabilities’ section – I will add custom filter to the next update in order developer may hide this section.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Filter ‘ure_show_additional_capabilities_section’ is available already at the dev version
    https://downloads.wordpress.org/plugin/user-role-editor.zip
    Return false in order to hide ‘Additional Capabilities’ or ‘Other Roles’ section:

    add_filter('ure_show_additional_capabilities_section', 'ure_show_additional_capabilities_section');
    
    function ure_show_additional_capabilities_section($show) {
    
      return false;
    }

    Thread Starter mattwiz

    (@mattwiz)

    Thanks!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing "Additional Capabilities" section for all users except admin’ is closed to new replies.