Make Private Groups Visible
-
Hello,
I am interested in making it so that private groups require membership request to join, but the content can be viewed by all. I made the following changes in groups.php, but it didnt seen to work. Any help would be greatly appreciated
Thanks
// If this is a private or hidden group, does the user have access?
if ( ‘private’ == $bp->groups->current_group->status || ‘hidden’ == $bp->groups->current_group->status ) {
if ( $bp->groups->current_group->is_user_member && is_user_logged_in() || is_site_admin() )
$bp->groups->current_group->user_has_access = true;
else
$bp->groups->current_group->user_has_access = true;
} else {
$bp->groups->current_group->user_has_access = true;
}
- The topic ‘Make Private Groups Visible’ is closed to new replies.