Changeset 13161
- Timestamp:
- 12/08/2021 09:48:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-admin.php
r13137 r13161 359 359 // Trust the 'bp_moderate' capability. 360 360 } else { 361 $retval = bp_current_user_can( 'bp_moderate');361 $retval = ( bp_current_user_can( 'edit_users' ) || bp_current_user_can( 'bp_moderate' ) ); 362 362 } 363 363 … … 1024 1024 public function user_admin() { 1025 1025 1026 if ( ! bp_current_user_can( ' bp_moderate' ) && empty( $this->is_self_profile ) ) {1026 if ( ! bp_current_user_can( 'edit_users' ) && ! bp_current_user_can( 'bp_moderate' ) && empty( $this->is_self_profile ) ) { 1027 1027 die( '-1' ); 1028 1028 } … … 1400 1400 1401 1401 // Permission check. 1402 if ( ! bp_current_user_can( ' bp_moderate' ) && $user_id != bp_loggedin_user_id() ) {1402 if ( ! bp_current_user_can( 'edit_users' ) && ! bp_current_user_can( 'bp_moderate' ) && $user_id != bp_loggedin_user_id() ) { 1403 1403 return; 1404 1404 }
Note: See TracChangeset
for help on using the changeset viewer.