diff --git a/CHANGELOG.md b/CHANGELOG.md index ea82290..e2dc3cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.2 - 2019-09-16 +### Fixed +- Wrong permission check that resulted in non-admin users not having permission to publish entries + ## 2.0.1 - 2019-08-21 ### Fixed - Allow anonymous for publish route diff --git a/composer.json b/composer.json index b8da313..e33d075 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "goldinteractive/craft3-publisher", "description": "", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "type": "craft-plugin", "require": { @@ -15,7 +15,7 @@ "extra": { "handle": "publisher", "name": "Publisher", - "schemaVersion": "2.0.1", + "schemaVersion": "2.0.2", "developer": "Gold Interactive", "developerUrl": "http://goldinteractive.ch", "class": "goldinteractive\\publisher\\Publisher" diff --git a/src/controllers/EntriesController.php b/src/controllers/EntriesController.php index 9264ba2..90926ff 100644 --- a/src/controllers/EntriesController.php +++ b/src/controllers/EntriesController.php @@ -55,7 +55,7 @@ public function actionSave() } if ($draft->enabled) { - $this->requirePermission('publishEntries:'.$entry->sectionId); + $this->requirePermission('publishEntries:'.$entry->section->uid); } if ($publishAt !== null) {