Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/12/2017 11:41:06 AM (8 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Prevent reading/publishing if group member is banned.

Fixes #2905. Props thebrandonallen, r-a-y.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/groups.php

    r6220 r6229  
    239239            case 'read_hidden_forums'  :
    240240            case 'read_private_forums' :
    241                 if ( bbp_group_is_member() || bbp_group_is_mod() || bbp_group_is_admin() ) {
     241                if ( bbp_group_is_banned() ) {
     242                    $caps = array( 'do_not_allow' );
     243
     244                } else if ( bbp_group_is_member() || bbp_group_is_mod() || bbp_group_is_admin() ) {
    242245                    $caps = array( 'participate' );
    243246                }
Note: See TracChangeset for help on using the changeset viewer.