fix(core): Revert isPending check on the user entity (#5571)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-02-27 12:35:59 +01:00
committed by GitHub
parent ea2035b510
commit a19ec6ac94

View File

@@ -111,9 +111,6 @@ export class User extends AbstractEntity implements IUser {
@AfterLoad()
@AfterUpdate()
computeIsPending(): void {
this.isPending =
this.globalRole?.name === 'owner' && this.globalRole.scope === 'global'
? false
: this.password === null;
this.isPending = this.password === null;
}
}