Skip to content

Commit

Permalink
Make assignUserGroup work correctly
Browse files Browse the repository at this point in the history
The 'assignUserGroup' permission was incorrectly serialized as - '', now it will correctly serialize as 'assignUserGroup:<groupname>'.
  • Loading branch information
Zae authored Jul 11, 2018
1 parent ae47f3d commit 38996da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Services/Sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 38996da

Please sign in to comment.