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