Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/25/2016 01:23:29 AM (8 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/includes/replies/functions.php

    r6026 r6032  
    319319
    320320    // If topic is closed, moderators can still reply
    321     if ( bbp_is_topic_closed( $topic_id ) && ! current_user_can( 'moderate' ) ) {
     321    if ( bbp_is_topic_closed( $topic_id ) && ! current_user_can( 'moderate', $topic_id ) ) {
    322322        bbp_add_error( 'bbp_reply_topic_closed', __( '<strong>ERROR</strong>: Topic is closed.', 'bbpress' ) );
    323323    }
Note: See TracChangeset for help on using the changeset viewer.