mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#1488 - Access to 'logged in' users for home page fails (attempts to redirect to Security/login forever) (merged from 2.1.1 branch, r43532)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44193 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8315756720
commit
13a66fec1f
@ -515,7 +515,7 @@ class SiteTree extends DataObject {
|
||||
|
||||
case 'view':
|
||||
case 'view_page':
|
||||
if((($this->Viewers == 'Anyone') ||
|
||||
if(((!$this->Viewers) || ($this->Viewers == 'Anyone') ||
|
||||
($this->Viewers == 'LoggedInUsers' && $member) ||
|
||||
($this->Viewers == 'OnlyTheseUsers' && $member &&
|
||||
$member->isInGroup($this->ViewersGroup))) == false)
|
||||
@ -1372,4 +1372,4 @@ class SiteTree extends DataObject {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user