WordPress.org

Ready to get started?Download WordPress

Forums

Extended Super Admins
Revoking network management options doesn't work (2 posts)

  1. sqrbrkt
    Member
    Posted 2 years ago #

    Hi all.

    So, I have created a new super admin (called 'Not so super admin') and removed only the following capabilities:
    manage_esa_options
    manage_network_options
    manage_network_plugins
    manage_network_themes

    The first two work without a hitch. Perfect. The second two, however, don't seem to do anything. The 'Not so super admin' still has the Themes and Plugins items in their network admin menu and can still add/edit/manage themes and plugins for the network.

    Am I missing something?

    NB: If I allow 'Not so super admin' to manage_esa_options and dump $current_user->allcaps from within get_allcaps() I get this (http://pastebin.com/DvLNKeCE) when on the plugin's settings page for the user assigned to that role.

    http://wordpress.org/extend/plugins/extended-super-admins/

  2. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    I think this is probably just a case of WordPress capabilities not being as clear as they should be. The manage_network_themes capability doesn't automatically disable any other capabilities; so all of your "Not so super admin" users still have the "install_themes", "delete_themes", "edit_themes", etc. caps. In order to keep them from being able to perform those actions, you'll need to remove those capabilities from that role, as well.

    Does that make sense? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic