From 4b046a58e819a5de2ad32d698333618c40525a6e Mon Sep 17 00:00:00 2001 From: dpslwk Date: Tue, 21 May 2019 04:12:39 +0100 Subject: [PATCH] Role: fix missing ArrayColletion init User: give google2fa a default --- app/HMS/Entities/Role.php | 1 + app/HMS/Entities/User.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/HMS/Entities/Role.php b/app/HMS/Entities/Role.php index 77c1c2c0e..6f34fa95e 100644 --- a/app/HMS/Entities/Role.php +++ b/app/HMS/Entities/Role.php @@ -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; } diff --git a/app/HMS/Entities/User.php b/app/HMS/Entities/User.php index c19b2c15c..f997126f7 100644 --- a/app/HMS/Entities/User.php +++ b/app/HMS/Entities/User.php @@ -120,6 +120,7 @@ public function __construct( $this->email = $email; $this->roles = new ArrayCollection(); $this->emails = new ArrayCollection(); + $this->google2faEnable = false; } /**