diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/group.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index 9e0843776..bbd7fba57 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -784,10 +784,13 @@ if ($group = page_owner_entity()) {
if ($group instanceof ElggGroup) {
$url = $group->getURL();
- if (
+ if ( ((!isloggedin()) && (!$group->isPublicMembership())) ||
((!$group->isMember(get_loggedin_user()) && (!$group->isPublicMembership())))
- ) $allowed = false;
+ ) $allowed = false; + + // Admin override + if (isadminloggedin()) $allowed = true;
}
}
|