From 730725fe866ba7413d2fe8bdff76eadbb3cfed3e Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 9 Aug 2010 04:41:46 +0000 Subject: [PATCH] BUGFIX SiteTree decorated canView() checks not being passed through to SiteTree::canView() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@109082 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 5048c5919..a594ba0c0 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -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;