[wp-trac] [WordPress Trac] #31573: wp_admin_bar_my_sites_menu should check for super admin capabilities

WordPress Trac noreply at wordpress.org
Mon Mar 9 15:36:36 UTC 2015


#31573: wp_admin_bar_my_sites_menu should check for super admin capabilities
--------------------------------+-----------------------------
 Reporter:  thomaslhotta        |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  4.1.1
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 Currently the "Network Admin" segment of the admin bar is only added for
 super admins. This could be done in a more granular way by using the
 corresponding super admin capabilities.

 I am currently adding this myself with code similar to this:

 {{{
 if ( current_user_can( 'manage_network_users' ) ) {
     $groups[] = array(
         'parent' => 'network-admin',
         'id'     => 'network-admin-u',
         'title'  => __( 'Users' ),
         'href'   => network_admin_url( 'users.php' ),
     );
 }
 }}}

 To make this useful the suggestions in #16860 would also have to be
 implemented.

 With BuddyPress now also using more granular checks for super admin
 capabilities this would allow for a much more refined access control to
 the network admin area. In my case I need the possibility to allow
 individual users the activate and edit user accounts, but have no access
 to other areas of the network admin in a multisite installation.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31573>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list