aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-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) {