Skip to:
Content

BuddyPress.org

Changeset 4508


Ignore:
Timestamp:
06/14/2011 07:15:07 PM (13 years ago)
Author:
djpaul
Message:

Fix activity stream commenting, broken in r4506. Fixes #3282

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r4506 r4508  
    156156        ) );
    157157
    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 ) ) {
    161160            bp_do_404();
    162161            return;
     
    164163       
    165164        // 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 ) {
    167166            bp_core_no_access();
    168167        }
Note: See TracChangeset for help on using the changeset viewer.