A free open source IT asset/license management system
Updated comments
snipe340f8b73a57f
diff --git a/app/Models/Group.php b/app/Models/Group.phpindex d4953291d2..6dae273998 100755--- a/app/Models/Group.php+++ b/app/Models/Group.php@@ -80,7 +80,7 @@ class Group extends SnipeModel*/public function decodePermissions(){- // Set default to empty JSON if the value is null+ // If the permissions are an array, convert it to JSONif (is_array($this->permissions)) {$this->permissions = json_encode($this->permissions);}diff --git a/app/Models/User.php b/app/Models/User.phpindex b10a948849..a115852d5c 100644--- a/app/Models/User.php+++ b/app/Models/User.php@@ -755,7 +755,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo*/public function decodePermissions(){- // Set default to empty JSON if the value is null+ // If the permissions are an array, convert it to JSONif (is_array($this->permissions)) {$this->permissions = json_encode($this->permissions);}