#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:
Andrew O'Neil 2007-11-04 21:13:44 +00:00
parent 8315756720
commit 13a66fec1f

View File

@ -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 {
}
}
?>
?>