Changeset 4961 for trunk/bp-groups/bp-groups-loader.php
- Timestamp:
- 08/10/2011 06:32:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-loader.php
r4920 r4961 94 94 95 95 $bp->is_single_item = true; 96 $current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' ); 96 $current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' ); 97 97 $this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) ); 98 98 … … 163 163 return; 164 164 } 165 165 166 166 // Group access control 167 167 if ( bp_is_groups_component() && !empty( $this->current_group ) && !empty( $bp->current_action ) && !$this->current_group->user_has_access ) { 168 168 if ( is_user_logged_in() ) { 169 169 // Off-limits to this user. Throw an error and redirect to the 170 // group's home page 170 // group's home page 171 171 bp_core_no_access( array( 172 172 'message' => __( 'You do not have access to this group.', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.