Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/16/2017 09:32:57 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Super Moderators: Compare the user ID to $args[0] instead.

This change makes sure the proper user IDs are compared, and also prevents super moderators from editing Keymasters (demotions can't come from users with a less capable role than their own.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/user-details.php

    r6321 r6574  
    6060            <?php endif; ?>
    6161
    62             <?php if ( bbp_is_user_home() || current_user_can( 'edit_users' ) ) : ?>
     62            <?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
    6363
    6464                <?php if ( bbp_is_subscriptions_active() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.