Skip to content

Commit

Permalink
Role: fix missing ArrayColletion init
Browse files Browse the repository at this point in the history
User: give google2fa a default
  • Loading branch information
dpslwk committed May 21, 2019
1 parent dd7030d commit 4b046a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/HMS/Entities/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function __construct($name, $displayName, $description)
$this->displayName = $displayName;
$this->description = $description;
$this->permissions = new ArrayCollection();
$this->users = new ArrayCollection();
$this->retained = false;
}

Expand Down
1 change: 1 addition & 0 deletions app/HMS/Entities/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public function __construct(
$this->email = $email;
$this->roles = new ArrayCollection();
$this->emails = new ArrayCollection();
$this->google2faEnable = false;
}

/**
Expand Down

0 comments on commit 4b046a5

Please sign in to comment.