BUGFIX: Content authors with SiteTree#canView() but not SiteTree#canEdit() were unable to click on SiteTree items in the CMS.

- The 'disabled' attribute in <li> will now only render if the author _really_ can't do _anything_
This commit is contained in:
Russell Michell 2013-05-23 14:48:24 +12:00
parent 417bef9948
commit 9281ebc647

View File

@ -2657,7 +2657,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
if(!$this->canAddChildren())
$classes .= " nochildren";
if(!$this->canEdit() && !$this->canAddChildren())
if(!$this->canView() && !$this->canEdit() && !$this->canAddChildren())
$classes .= " disabled";
if(!$this->ShowInMenus)