Skip to content

Commit

Permalink
FIX: Remove canPublish check for users to see unpublish button (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Sep 29, 2020
1 parent 6aedf12 commit 3bcc569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VersionedGridFieldItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ protected function addVersionedButtons(DataObject $record, FieldList $actions)
}

// "unpublish" action
if ($isPublished && $canPublish && $isOnDraft && $canUnpublish) {
if ($isPublished && $isOnDraft && $canUnpublish) {
$actionUnpublish = FormAction::create(
'doUnpublish',
_t(self::class . '.BUTTONUNPUBLISH', 'Unpublish')
Expand Down

0 comments on commit 3bcc569

Please sign in to comment.