Merge pull request #754 from phptek/bug/073

BUGFIX: Content authors with SiteTree#canView() but not SiteTree#canEdit...
This commit is contained in:
Sean Harvey 2013-05-22 20:10:25 -07:00
commit 7f174f0a8d

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)