Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/25/2016 01:23:29 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Moderators: pass current forum/topic/reply ID into moderate capability checks, providing additional context about what's being moderated so more targeted decisions can be made.

See #459.

File:
1 edited

Legend:

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

    r5829 r6032  
    109109                    <?php if ( bbp_is_reply_edit() ) : ?>
    110110
    111                         <?php if ( current_user_can( 'moderate' ) ) : ?>
     111                        <?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
    112112
    113113                            <?php do_action( 'bbp_theme_before_reply_form_reply_to' ); ?>
Note: See TracChangeset for help on using the changeset viewer.