diff options
author | Steve Clay <steve@mrclay.org> | 2012-09-07 02:20:56 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-09-07 02:20:56 -0400 |
commit | a0005033ac0d69ef462ff27394cd1c34d5dd5fab (patch) | |
tree | 2b4005acb8af685b4a7b68f31aa4ff5c260f86a5 /engine/lib/group.php | |
parent | 8916fcdca6a2950d210abd2db7e6fb104abec149 (diff) | |
download | elgg-a0005033ac0d69ef462ff27394cd1c34d5dd5fab.tar.gz elgg-a0005033ac0d69ef462ff27394cd1c34d5dd5fab.tar.bz2 |
Better logic for when to forward to login
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r-- | engine/lib/group.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index b81146e61..b32c4bd48 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -271,7 +271,7 @@ function group_gatekeeper($forward = true) { $group = get_entity($page_owner_guid); $forward_url = $group ? $group->getURL() : ''; - if ($visibility->reasonHidden !== ElggGroupItemVisibility::REASON_MEMBERSHIP) { + if (!elgg_is_logged_in()) { $_SESSION['last_forward_from'] = current_page_url(); $forward_reason = 'login'; } else { |