Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/08/2017 01:02:07 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Users: Check promote_user capability instead of edit_user before displaying "User Role" section in form-user-edit.php, for consistency with bbp_profile_update_role().

Fixes #3126.

File:
1 edited

Legend:

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

    r6575 r6617  
    127127    </fieldset>
    128128
    129     <?php if ( ! bbp_is_user_home_edit() && current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
     129    <?php if ( ! bbp_is_user_home_edit() && current_user_can( 'promote_user', bbp_get_displayed_user_id() ) ) : ?>
    130130
    131131        <h2 class="entry-title"><?php esc_html_e( 'User Role', 'bbpress' ) ?></h2>
Note: See TracChangeset for help on using the changeset viewer.