Skip to content

Commit

Permalink
fix(core): Revert isPending check on the user entity (#5571)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Feb 27, 2023
1 parent 51eedac commit 43eec66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/cli/src/databases/entities/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 43eec66

Please sign in to comment.