mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
417bef9948
commit
9281ebc647
@ -2657,7 +2657,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
if(!$this->canAddChildren())
|
if(!$this->canAddChildren())
|
||||||
$classes .= " nochildren";
|
$classes .= " nochildren";
|
||||||
|
|
||||||
if(!$this->canEdit() && !$this->canAddChildren())
|
if(!$this->canView() && !$this->canEdit() && !$this->canAddChildren())
|
||||||
$classes .= " disabled";
|
$classes .= " disabled";
|
||||||
|
|
||||||
if(!$this->ShowInMenus)
|
if(!$this->ShowInMenus)
|
||||||
|
Loading…
Reference in New Issue
Block a user