Skip to:
Content

bbPress.org

Changeset 5853


Ignore:
Timestamp:
07/15/2015 10:31:49 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Moderation: reduce moderation restriction from keep-gate to moderate in bbp_check_for_moderation().

This changeset ensures that moderators are able to bypass the forum moderation, seeing as how they can self-approve topics & replies anyways.

Props netweb. Fixes #2726.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r5829 r5853  
    792792    }
    793793
    794     // Bail if author is keymaster
    795     if ( ! empty( $author_id ) && bbp_is_user_keymaster( $author_id ) ) {
     794    // Bail if user can moderate
     795    // https://bbpress.trac.wordpress.org/ticket/2726
     796    if ( ! empty( $author_id ) && user_can( $author_id, 'moderate' ) ) {
    796797        return true;
    797798    }
Note: See TracChangeset for help on using the changeset viewer.