Skip to content
Snippets Groups Projects
Verified Commit 3e164c6a authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7838 inline const

parent bf532f50
No related branches found
No related tags found
1 merge request!95OZG-7383 add realm-management roles for admin
...@@ -226,13 +226,12 @@ export class UserFormService extends KeycloakFormService<User> implements OnDest ...@@ -226,13 +226,12 @@ export class UserFormService extends KeycloakFormService<User> implements OnDest
} }
_createUser(): User { _createUser(): User {
const administrationRoles: string[] = this._getRoles(UserFormService.ADMINISTRATION_GROUP);
return { return {
...this._getFormValue(), ...this._getFormValue(),
enabled: true, enabled: true,
clientRoles: { clientRoles: {
alfa: this._getRoles(UserFormService.ALFA_GROUP), alfa: this._getRoles(UserFormService.ALFA_GROUP),
admin: administrationRoles, admin: this._getRoles(UserFormService.ADMINISTRATION_GROUP),
}, },
groups: this._getActiveOrganisationsEinheiten(), groups: this._getActiveOrganisationsEinheiten(),
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment