fix(core): All calls to plainToInstance should exclude extraneous values (no-changelog) (#9338)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-05-08 15:49:41 +02:00
committed by GitHub
parent 9003c15811
commit 5025d209ca
6 changed files with 28 additions and 16 deletions

View File

@@ -115,7 +115,7 @@ export class User extends WithTimestamps implements IUser {
@AfterLoad()
@AfterUpdate()
computeIsPending(): void {
this.isPending = this.password === null;
this.isPending = this.password === null && this.role !== 'global:owner';
}
/**