aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 21:27:58 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 21:27:58 +0000
commitaad6d0fa305c25ac710cfdc8d990a1fa072fba90 (patch)
tree926cab5c022e2f6d0333740872e2460638d91f9f /mod/groups
parenta76b3e545010f2c33adbfc29063e989b6aac8c55 (diff)
downloadelgg-aad6d0fa305c25ac710cfdc8d990a1fa072fba90.tar.gz
elgg-aad6d0fa305c25ac710cfdc8d990a1fa072fba90.tar.bz2
Fixing a logged out problem with group access.
git-svn-id: http://code.elgg.org/elgg/trunk@5785 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/start.php4
1 files changed, 3 insertions, 1 deletions
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) {