Skip to content

Commit

Permalink
Fixed "assign user group" permissions not being exported
Browse files Browse the repository at this point in the history
  • Loading branch information
boboldehampsink committed Jan 8, 2019
1 parent a12e21b commit 322f91c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
# aliased to a recent hhvm version
- hhvm

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.1.1 - 2019-01-08
### Fixed
- Fixed "assign user group" permissions not being exported

## 4.1.0 - 2018-11-19
### Added
- Added more flexibility for getting a record's index
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.1.0",
"version": "4.1.1",
"name": "nerds-and-company/schematic",
"description": "Craft setup and sync tool",
"type": "craft-plugin",
Expand Down
4 changes: 4 additions & 0 deletions src/Behaviors/SourcesBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ public function getSource(string $fieldType, string $source = null, string $inde
$service = Craft::$app->sections;
$method = 'getSectionBy';
break;
case 'assignUserGroup':
$service = Craft::$app->userGroups;
$method = 'getGroupBy';
break;
case 'group':
case 'editCategories':
$service = Users::class == $fieldType ? Craft::$app->userGroups : Craft::$app->categories;
Expand Down

0 comments on commit 322f91c

Please sign in to comment.