From 38996da95325de3215586c3510f67a1207b158f8 Mon Sep 17 00:00:00 2001 From: Ezra Pool Date: Wed, 11 Jul 2018 12:10:49 +0200 Subject: [PATCH 1/2] Make assignUserGroup work correctly The 'assignUserGroup' permission was incorrectly serialized as - '', now it will correctly serialize as 'assignUserGroup:'. --- src/Services/Sources.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Services/Sources.php b/src/Services/Sources.php index 1db2a8a8..3e387d99 100644 --- a/src/Services/Sources.php +++ b/src/Services/Sources.php @@ -110,6 +110,10 @@ public function getSource($fieldType, $source, $indexFrom, $indexTo) break; case 'editLocale': return $source; + case 'assignUserGroup': + $service = Craft::app()->userGroups; + $method = 'getGroupBy'; + break; } if (isset($service) && isset($method) && isset($sourceFrom)) { From 91690e1b64ce14fbcd1203799df7db29d1efae5d Mon Sep 17 00:00:00 2001 From: Ezra Pool Date: Wed, 11 Jul 2018 12:13:43 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a68921fd..7586c6c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 3.8.9 ### +- Fixed assignUserGroup permission serialization bug + ### 3.8.8 ### - Added ability to exclude datatypes on import (thanks @Zae)