]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
catch so closed group albums are not available to outsiders
authorCash Costello <cash.costello@gmail.com>
Fri, 17 Jul 2009 01:06:52 +0000 (01:06 +0000)
committerCash Costello <cash.costello@gmail.com>
Fri, 17 Jul 2009 01:06:52 +0000 (01:06 +0000)
index.php

index b308a026d06ee7f98053b143fbf3b6ad94c7f02b..17aa70f3b633379a693af1fd4b91e5e859b824c9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -7,6 +7,9 @@
 \r
        include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");\r
        \r
+       // if this page belongs to a closed group, prevent anyone outside group from seeing\r
+       if (is_callable('group_gatekeeper')) group_gatekeeper();\r
+       \r
        //get the owner of the current page\r
        $owner = page_owner_entity();\r
        \r