From 3bcc5690543e46e0f13d5cfa966f6a4fd2bcccb5 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Tue, 29 Sep 2020 19:08:25 +0100 Subject: [PATCH] FIX: Remove canPublish check for users to see unpublish button (fixes #300) --- src/VersionedGridFieldItemRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VersionedGridFieldItemRequest.php b/src/VersionedGridFieldItemRequest.php index d4e53f2f..c9caefa3 100644 --- a/src/VersionedGridFieldItemRequest.php +++ b/src/VersionedGridFieldItemRequest.php @@ -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')