BUGFIX SiteTree decorated canView() checks not being passed through to SiteTree::canView() (from r109082)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112775 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-19 00:54:02 +00:00
parent adfab98adb
commit d6fdc57db7

View File

@ -775,7 +775,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
// Standard mechanism for accepting permission changes from decorators
$extended = $this->extendedCan('canView', $member);
if($extended != null) return $extended;
if($extended !== null) return $extended;
// check for empty spec
if(!$this->CanViewType || $this->CanViewType == 'Anyone') return true;