fix(core-authentication): extra update on user create

This commit is contained in:
Wroud
2020-09-06 23:47:38 +03:00
parent 071b53800d
commit 716e3e79c5
@@ -100,9 +100,9 @@ export class UsersResource extends CachedMapResource<string, AdminUserInfo> {
this.set(userId, user as AdminUserInfo);
try {
this.updateCredentials(userId, credentials);
await this.updateCredentials(userId, credentials);
for (const roleId of roles) {
await this.grantRole(userId, roleId);
await this.grantRole(userId, roleId, true);
}
await this.setConnections(userId, grantedConnections);