[buddypress-trac] [BuddyPress Trac] #5932: Capability for BP_Members_Admin should be "manage_network_users"

buddypress-trac noreply at wordpress.org
Thu Oct 9 17:05:17 UTC 2014


#5932: Capability for BP_Members_Admin should be "manage_network_users"
--------------------------+-----------------------------
 Reporter:  thomaslhotta  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Members       |    Version:  2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The current capability used in BP_Members_Admin is
 "manage_network_options". It think it would be better to use the
 "manage_network_users" capability. This would allow more granular access
 control to the network admin.

 This would also require to replace

 {{{
 if ( ! is_super_admin() || empty( $action ) )
 }}}
 on line 1333 with
 {{{
 if ( ! current_user_can( $this->capability ) || empty( $action ) ) {
 }}}




 In my case I use this to allow specific users access to the network user
 management without giving them full access to all network options. I
 currently do this by extending the BP_Members_Admin, what seems rather
 hackish.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5932>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list