diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 8aa36b3bf..6a7a165e8 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -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 { } } -?> \ No newline at end of file +?>