|
@@ 33-35 (lines=3) @@
|
| 30 |
|
throw new \Exception('No user groups set to create user in.'); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
if (!is_array($this->dsl['groups'])) { |
| 34 |
|
$this->dsl['groups'] = array($this->dsl['groups']); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
$userService = $this->repository->getUserService(); |
| 38 |
|
$contentTypeService = $this->repository->getContentTypeService(); |
|
@@ 108-110 (lines=3) @@
|
| 105 |
|
$user = $userService->updateUser($user, $userUpdateStruct); |
| 106 |
|
|
| 107 |
|
if (isset($this->dsl['groups'])) { |
| 108 |
|
if (!is_array($this->dsl['groups'])) { |
| 109 |
|
$this->dsl['groups'] = array($this->dsl['groups']); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
$assignedGroups = $userService->loadUserGroupsOfUser($user); |
| 113 |
|
|