fix(plugin-authentication-administration): CB-2105 don't update user status if there were no changes

This commit is contained in:
Naumov Alexey
2022-06-01 13:21:20 +02:00
parent 285a3d5d29
commit ccad17b2e7
@@ -280,7 +280,9 @@ export class UserFormController implements IInitializableController, IDestructib
}
private async saveUserStatus() {
await this.usersResource.enableUser(this.user.userId, this.enabled);
if (this.enabled !== this.user.enabled) {
await this.usersResource.enableUser(this.user.userId, this.enabled);
}
}
private async saveConnectionPermissions() {