Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix(user.model): Convert bool properties to bool in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Jan 17, 2018
1 parent 8bd9553 commit 7a467be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/core/src/shared/models/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export class User extends BaseResourceModel {
this.parseByFields(obj, User.meta());
this.groups = obj.groups && obj.groups.length ?
obj.groups.map((group: any) => new Group(group)) : [];
this.isActive = !!this.isActive;
this.isStaff = !!this.isStaff;
this.isSuperuser = !!this.isSuperuser;
this.rePassword = this.password;
}
validate() {
Expand Down

0 comments on commit 7a467be

Please # to comment.