Skip to:
Content

bbPress.org

Ticket #2905: 2905.2.diff

File 2905.2.diff, 646 bytes (added by thebrandonallen, 8 years ago)
  • src/includes/extend/buddypress/groups.php

    diff --git src/includes/extend/buddypress/groups.php src/includes/extend/buddypress/groups.php
    index 408bf1e..6335b0d 100644
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    213213                        case 'publish_topics'      :
    214214                        case 'read_hidden_forums'  :
    215215                        case 'read_private_forums' :
    216                                 if ( bbp_group_is_member() || bbp_group_is_mod() || bbp_group_is_admin() ) {
     216                                if ( bbp_group_is_member() || bbp_group_is_mod() || bbp_group_is_admin() || ! bbp_group_is_banned() ) {
    217217                                        $caps = array( 'participate' );
    218218                                }
    219219                                break;