Changeset 9320
- Timestamp:
- 01/08/2015 11:56:08 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-members/bp-members-admin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-admin.php
r9318 r9320 106 106 107 107 // Capability depends on config 108 $this->capability = bp_core_do_network_admin() ? 'manage_network_ options' : 'manage_options';108 $this->capability = bp_core_do_network_admin() ? 'manage_network_users' : 'edit_users'; 109 109 110 110 // The Edit Profile Screen id … … 145 145 // When BuddyPress is not network activated, only Super Admin can moderate signups 146 146 if ( ! empty( $this->subsite_activated ) ) { 147 $this->capability = 'manage_network_ options';147 $this->capability = 'manage_network_users'; 148 148 } 149 149 } … … 1862 1862 */ 1863 1863 public function signups_admin_manage( $action = '' ) { 1864 if ( ! is_super_admin() || empty( $action ) ) {1864 if ( ! current_user_can( $this->capability ) || empty( $action ) ) { 1865 1865 die( '-1' ); 1866 1866 }
Note: See TracChangeset
for help on using the changeset viewer.