Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/01/2016 08:05:17 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Moderation: Skip moderator query if per-forum moderation is not enabled.

Props jmdodd. Fixes #2988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/capabilities.php

    r6056 r6087  
    135135
    136136                // User is a per-forum moderator, make sure they can spectate.
    137                 } elseif ( bbp_allow_forum_mods() && bbp_is_user_forum_moderator( $user_id, bbp_get_reply_forum_id( $_post->ID ) ) ) {
     137                } elseif ( bbp_is_user_forum_moderator( $user_id, bbp_get_reply_forum_id( $_post->ID ) ) ) {
    138138                    $caps = array( 'spectate' );
    139139
Note: See TracChangeset for help on using the changeset viewer.