mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #754 from phptek/bug/073
BUGFIX: Content authors with SiteTree#canView() but not SiteTree#canEdit...
This commit is contained in:
commit
7f174f0a8d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user