fix(core): User update endpoint should only allow updating email, firstName, and lastName (#5526)
This commit is contained in:
committed by
GitHub
parent
eef2574067
commit
510855d958
@@ -111,6 +111,9 @@ export class User extends AbstractEntity implements IUser {
|
||||
@AfterLoad()
|
||||
@AfterUpdate()
|
||||
computeIsPending(): void {
|
||||
this.isPending = this.password === null;
|
||||
this.isPending =
|
||||
this.globalRole?.name === 'owner' && this.globalRole.scope === 'global'
|
||||
? false
|
||||
: this.password === null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user