mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUG: Unpublish permission decoupled from publish permission.
This commit is contained in:
parent
c58144ad6d
commit
39b8d14634
@ -2371,7 +2371,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
}
|
||||
|
||||
// "unpublish"
|
||||
if ($isPublished && $canPublish && $isOnDraft && $canUnpublish) {
|
||||
if ($isPublished && $isOnDraft && $canUnpublish) {
|
||||
$moreOptions->push(
|
||||
FormAction::create('unpublish', _t(__CLASS__.'.BUTTONUNPUBLISH', 'Unpublish'), 'delete')
|
||||
->setDescription(_t(__CLASS__.'.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'))
|
||||
|
Loading…
Reference in New Issue
Block a user