Ticket #3687: 3687.01.patch
File 3687.01.patch, 748 bytes (added by , 13 years ago) |
---|
-
bp-groups/bp-groups-loader.php
class BP_Groups_Component extends BP_Component { 166 166 // Group access control 167 167 if ( bp_is_groups_component() && !empty( $this->current_group ) ) { 168 168 169 if ( !empty( $bp->current_action ) && !$this->current_group->user_has_access ) {169 if ( !empty( $bp->current_action ) && !$this->current_group->user_has_access && $bp->current_action != 'request-membership' && $bp->current_action != 'home' ) { 170 170 if ( is_user_logged_in() ) { 171 171 // Off-limits to this user. Throw an error and redirect to the group's home page 172 172 bp_core_no_access( array(