diff options
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r-- | engine/lib/group.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index 7b3f76e27..f3314ada6 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -261,14 +261,14 @@ function group_gatekeeper($forward = true) { if ($group instanceof ElggGroup) { $url = $group->getURL(); if ( - ((!isloggedin()) && (!$group->isPublicMembership())) || - ((!$group->isMember(get_loggedin_user()) && (!$group->isPublicMembership()))) + ((!elgg_is_logged_in()) && (!$group->isPublicMembership())) || + ((!$group->isMember(elgg_get_logged_in_user_entity()) && (!$group->isPublicMembership()))) ) { $allowed = false; } // Admin override - if (isadminloggedin()) { + if (elgg_is_admin_logged_in()) { $allowed = true; } } |