Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Benjamin Pick

    (@benjaminpick)

    For now, I will disable the filter:

    add_action(‘admin_init’, ‘yt_fix_user_editor’);

    function yt_fix_user_editor() {
    remove_filter(‘user_has_cap’, array($GLOBALS[‘user_role_editor’], ‘not_edit_admin’ ), 10, 3);
    }

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi Benjamin,

    Thanks for the suggestion. I will make final user of User Role Editor capable to selectively switch off built-in security checks, like one above, using URE itself.

    I think I have a similar issue.

    I have a multisite network. As soon as the User Role Editor plugin is activated, Administrators can no longer view other Administrators in the user list. They cannot even see themselves in the list. Super Administrators can still see all of the users.

    This became an issue today when a site Administrator complained that he could no longer see a particular user in the list. I had just promoted that user from Editor to Administrator the day before.

    I even tried checking the Multisite –> “Allow non super administrators to create, edit, and delete users” option, but the administrators were still hidden.

    Is this a custom capability that can be added through the URE GUI? Or does it have to be patched?

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Try this filter ‘ure_supress_administrators_protection’. If it will return true, this additional security feature will be disabled.
    You need to add this code to the .php file to the wp-content/mu-plugins folder:

    add_filter('ure_supress_administrators_protection', 'my_ure_supress_administrators_protection');
    function my_ure_supress_administrators_protection($supress) {
      return true;
    }

    Is there another way to solve this issue besides disabling security features? We would like our admins to be able to see other admins in the user list. We are also a premium plugin member.

    Thank you!

    Plugin Author Vladimir Garagulya

    (@shinephp)

    This is “extra” security measure, which does not exist at WordPress by default.
    If you decide that one admin should see another – use a decision proposed above. It influences especially to the feature you wish to change.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Administrator cannot edit Administrator’ is closed to new replies.