From 716e3e79c559ddc673b49dc8ef03271525397a5d Mon Sep 17 00:00:00 2001 From: Wroud Date: Sun, 6 Sep 2020 23:47:38 +0300 Subject: [PATCH] fix(core-authentication): extra update on user create --- webapp/packages/core-authentication/src/UsersResource.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/packages/core-authentication/src/UsersResource.ts b/webapp/packages/core-authentication/src/UsersResource.ts index 050b73b360..02541f888c 100644 --- a/webapp/packages/core-authentication/src/UsersResource.ts +++ b/webapp/packages/core-authentication/src/UsersResource.ts @@ -100,9 +100,9 @@ export class UsersResource extends CachedMapResource { 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);