mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(plugin-authentication-administration): CB-2105 don't update user status if there were no changes
This commit is contained in:
+3
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user