From aad6d0fa305c25ac710cfdc8d990a1fa072fba90 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 16 Apr 2010 21:27:58 +0000 Subject: Fixing a logged out problem with group access. git-svn-id: http://code.elgg.org/elgg/trunk@5785 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/groups') diff --git a/mod/groups/start.php b/mod/groups/start.php index f6f10b27a..bca4d1500 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -417,7 +417,9 @@ function groups_write_acl_plugin_hook($hook, $entity_type, $returnvalue, $params) { $page_owner = page_owner_entity(); - $loggedin = get_loggedin_user(); + if (!$loggedin = get_loggedin_user()) { + return $returnvalue; + } // only insert group access for current group if ($page_owner instanceof ElggGroup && $loggedin) { -- cgit v1.2.3