Changeset 4508
- Timestamp:
- 06/14/2011 07:15:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-loader.php
r4506 r4508 156 156 ) ); 157 157 158 // If the user was attempting to access a group, but no group by that name was 159 // found, 404 160 if ( empty( $this->current_group ) && !empty( $bp->current_action ) && !in_array( $bp->current_action, $this->forbidden_names ) ) { 158 // If the user was attempting to access a group, but no group by that name was found, 404 159 if ( bp_is_groups_component() && empty( $this->current_group ) && !empty( $bp->current_action ) && !in_array( $bp->current_action, $this->forbidden_names ) ) { 161 160 bp_do_404(); 162 161 return; … … 164 163 165 164 // Group access control 166 if ( !empty( $this->current_group ) && !$this->current_group->user_has_access ) {165 if ( bp_is_groups_component() && !empty( $this->current_group ) && !$this->current_group->user_has_access ) { 167 166 bp_core_no_access(); 168 167 }
Note: See TracChangeset
for help on using the changeset viewer.