aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/groupprofile.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 11:07:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 11:07:42 +0000
commit3cdf73acb6641827dda69599496384f33a8e0ffb (patch)
tree3f6afa425c4dd6e72feda6af79271ecf171ea66b /mod/groups/groupprofile.php
parenta0ff6865887915c866ec6e49ec5e13fbd0fb5eda (diff)
downloadelgg-3cdf73acb6641827dda69599496384f33a8e0ffb.tar.gz
elgg-3cdf73acb6641827dda69599496384f33a8e0ffb.tar.bz2
Introducing group_gatekeeper()
git-svn-id: https://code.elgg.org/elgg/trunk@2888 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/groupprofile.php')
-rw-r--r--mod/groups/groupprofile.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/mod/groups/groupprofile.php b/mod/groups/groupprofile.php
index 437685313..b7dffa524 100644
--- a/mod/groups/groupprofile.php
+++ b/mod/groups/groupprofile.php
@@ -22,10 +22,8 @@
// Hide some items from closed groups when the user is not logged in.
$view_all = true;
- if (
- ((!isloggedin()) && (!$group->isPublicMembership())) ||
- ((!$group->isMember(get_loggedin_user()) && (!$group->isPublicMembership())))
- )
+ $groupaccess = group_gatekeeper(false);
+ if (!$groupaccess)
$view_all = false;