Change WordPress user roles and capabilities Forums Bug Reports "Other Roles" w/ "Administrator" Not Working Reply To: "Other Roles" w/ "Administrator" Not Working



Currently User Role Editor Pro “Other Roles Access” add-on does not apply any restrictions for the users with ‘administrator’ role. My apologies for confusion as URE allows to edit the other role access restrictions for ‘Administrator’ role at the same time.

I will add a custom filter for this with a next update. So you may change this logic – apply other roles restrictions to the local administrators under multisite or not.

A quick workaround for current 4.28.2 version: open wp-content/plugins/user-role-editor-pro/pro/classes/other-roles-access.php file and comment lines 125, 126, 127, so you should get this code:

    protected function blocking_needed() {
        global $current_user;
        // do not block data for superadmin
        $multisite = $this->lib->get('multisite');
        if ($multisite && is_super_admin()) {
            return false;
        // do not block data for local administrator
        //if ($this->lib->user_has_capability($current_user, 'administrator')) {
        //    return false;
        // user can update access to other roles
        if ($this->lib->user_has_capability($current_user, self::other_roles_access_cap)) {
            return false;