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/forums/functions.php

    r6026 r6032  
    339339
    340340            // User can moderate, so redirect to forum with view all set
    341             if ( current_user_can( 'moderate' ) ) {
     341            if ( current_user_can( 'moderate', $forum_id ) ) {
    342342                $redirect_url = bbp_add_view_all( $redirect_url );
    343343
Note: See TracChangeset for help on using the changeset viewer.