aboutsummaryrefslogtreecommitdiff
path: root/viewalbum.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-07-17 01:22:40 +0000
committerCash Costello <cash.costello@gmail.com>2009-07-17 01:22:40 +0000
commite013de96d9c734b4b4ce7bc26c928c2b82c4063a (patch)
tree5f9ac5523aa4411029363a4d1d3a37438871e544 /viewalbum.php
parentf19567d4aba06283c99093087a10ba2f5c7369ac (diff)
downloadelgg-e013de96d9c734b4b4ce7bc26c928c2b82c4063a.tar.gz
elgg-e013de96d9c734b4b4ce7bc26c928c2b82c4063a.tar.bz2
added more catches for accessing closed group content
Diffstat (limited to 'viewalbum.php')
-rw-r--r--viewalbum.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/viewalbum.php b/viewalbum.php
index 602963816..9342db1e6 100644
--- a/viewalbum.php
+++ b/viewalbum.php
@@ -19,6 +19,9 @@
else
set_page_owner($album->owner_guid);
+ // if this page belongs to a closed group, prevent anyone outside group from seeing
+ if (is_callable('group_gatekeeper')) group_gatekeeper();
+
$owner = page_owner_entity();
// setup group menu