Ticket #7598: 7598.patch
File 7598.patch, 592 bytes (added by , 7 years ago) |
---|
-
src/bp-members/classes/class-bp-members-admin.php
1197 1197 check_admin_referer( 'bp-member-type-change-' . $user_id, 'bp-member-type-nonce' ); 1198 1198 1199 1199 // Permission check. 1200 if ( ! current_user_can( 'bp_moderate' ) && $user_id != bp_loggedin_user_id() ) {1200 if ( ! bp_current_user_can( 'bp_moderate' ) && $user_id != bp_loggedin_user_id() ) { 1201 1201 return; 1202 1202 } 1203 1203