Skip to:
Content

BuddyPress.org

Ticket #2014: show-private-activity-for-loggedin-members-public-group.patch

File show-private-activity-for-loggedin-members-public-group.patch, 708 bytes (added by sbrajesh, 14 years ago)
  • bp-activity-templatetags.php

     
    149149        if ( !empty( $bp->groups->current_group ) ) {
    150150                $object = $bp->groups->id;
    151151                $primary_id = $bp->groups->current_group->id;
    152 
    153                 if ( 'public' != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )
     152                /** If user is member of the group, the hidden activity should be shown**/
     153                if ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )
    154154                        $show_hidden = true;
    155155        }
    156156