diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-07-17 01:06:52 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-07-17 01:06:52 +0000 |
commit | f19567d4aba06283c99093087a10ba2f5c7369ac (patch) | |
tree | 17878d761c78676381b5bdb09a10e108f0d42b7b | |
parent | 2a0b13d8668da50325dac33b21de1a376af28953 (diff) | |
download | elgg-f19567d4aba06283c99093087a10ba2f5c7369ac.tar.gz elgg-f19567d4aba06283c99093087a10ba2f5c7369ac.tar.bz2 |
catch so closed group albums are not available to outsiders
-rw-r--r-- | index.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,9 @@ include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ // if this page belongs to a closed group, prevent anyone outside group from seeing
+ if (is_callable('group_gatekeeper')) group_gatekeeper();
+
//get the owner of the current page
$owner = page_owner_entity();
|