Skip to content

Commit

Permalink
Merge pull request #301 from kinglozzer/300-unpublish-permissions
Browse files Browse the repository at this point in the history
FIX: Remove canPublish check for users to see unpublish button (fixes #300)
  • Loading branch information
dhensby authored Oct 1, 2020
2 parents 6aedf12 + 3bcc569 commit ba02f5e
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 ba02f5e

Please sign in to comment.