Change WordPress user roles and capabilities Forums Bug Reports Only Super Administrator can change Admin Menu? Reply To: Only Super Administrator can change Admin Menu?

#2029
Vladimir
Keymaster

Hi Nigel,

Thanks for the information. There is a mistake in the condition that prevents single admin from blocking menu items for himself. I will include a fix to the next update.
As a quick fix you may open user-role-editor-pro/includes/pro/classes/admin-menu-view.php and replace line #133


$readonly_mode = (!$lib->multisite && $allowed_roles[0]=='administrator') || ($lib->multisite && !is_super_admin()); 

with this one:


$readonly_mode = (!$lib->multisite && $allowed_roles[0]=='administrator') || ($lib->multisite && !is_super_admin() && $allowed_roles[0]=='administrator');