Changeset 13795 for trunk/src/bp-members/classes/class-bp-members-admin.php
- Timestamp:
- 04/13/2024 08:20:06 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-admin.php
r13574 r13795 1492 1492 $current_type = (array) bp_get_member_type( $user->ID, false ); 1493 1493 $types_count = count( array_filter( $current_type ) ); 1494 $disabled = ! bp_current_user_can( 'edit_users' ) && ! bp_current_user_can( 'bp_moderate' ); 1494 1495 ?> 1495 1496 … … 1504 1505 <li> 1505 1506 <label class="selectit"> 1506 <input value="<?php echo esc_attr( $type->name ) ?>" name="bp-members-profile-member-type[]" type="checkbox" <?php checked( true, in_array( $type->name, $current_type ) ); ?> >1507 <input value="<?php echo esc_attr( $type->name ) ?>" name="bp-members-profile-member-type[]" type="checkbox" <?php checked( true, in_array( $type->name, $current_type ) ); ?> <?php disabled( $disabled ); ?>> 1507 1508 <?php echo esc_html( $type->labels['singular_name'] ); ?> 1508 1509 </label> … … 1531 1532 1532 1533 // Permission check. 1533 if ( ! bp_current_user_can( 'edit_users' ) && ! bp_current_user_can( 'bp_moderate' ) && $user_id != bp_loggedin_user_id()) {1534 if ( ! bp_current_user_can( 'edit_users' ) && ! bp_current_user_can( 'bp_moderate' ) ) { 1534 1535 return; 1535 1536 }
Note: See TracChangeset
for help on using the changeset viewer.