Changeset 6574
- Timestamp:
- 06/16/2017 09:32:57 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/capabilities.php
r6573 r6574 121 121 122 122 // Users can always edit themselves, so only map for others 123 if ( bbp_get_current_user_id() !== $user_id ) { 124 $caps = array( 'moderate' ); 123 if ( ! empty( $args[0] ) && ( $args[0] !== $user_id ) ) { 124 125 // Super moderators cannot edit keymasters 126 if ( ! bbp_is_user_keymaster( $args[0] ) ) { 127 $caps = array( 'moderate' ); 128 } 125 129 } 126 130 } -
trunk/src/templates/default/bbpress/user-details.php
r6321 r6574 60 60 <?php endif; ?> 61 61 62 <?php if ( bbp_is_user_home() || current_user_can( 'edit_user s') ) : ?>62 <?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?> 63 63 64 64 <?php if ( bbp_is_subscriptions_active() ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.