diff --git a/src/bp-members/classes/class-bp-members-admin.php b/src/bp-members/classes/class-bp-members-admin.php
index 717d8109c..f1b6b4a32 100644
a
|
b
|
class BP_Members_Admin { |
1491 | 1491 | $types = bp_get_member_types( array(), 'objects' ); |
1492 | 1492 | $current_type = (array) bp_get_member_type( $user->ID, false ); |
1493 | 1493 | $types_count = count( array_filter( $current_type ) ); |
| 1494 | $disabled = ! current_user_can( 'administrator' ) ? 'disabled="disabled"' : ''; |
1494 | 1495 | ?> |
1495 | 1496 | |
1496 | 1497 | <label for="bp-members-profile-member-type" class="screen-reader-text"> |
… |
… |
class BP_Members_Admin { |
1503 | 1504 | <?php foreach ( $types as $type ) : ?> |
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 echo esc_attr( $disabled ); ?>> |
1507 | 1508 | <?php echo esc_html( $type->labels['singular_name'] ); ?> |
1508 | 1509 | </label> |
1509 | 1510 | </li> |