A free open source IT asset/license management system
Check that the permissions are really an array
snipefa9855722554
diff --git a/app/Models/User.php b/app/Models/User.phpindex c6cac9f388..2c56c43737 100644--- a/app/Models/User.php+++ b/app/Models/User.php@@ -237,11 +237,14 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo$permissions = json_decode($this->permissions, true);}- foreach ($permissions as $permission) {- if ($permission != 0) {- return true;+ if (($permissions) && (is_array($permissions))) {+ foreach ($permissions as $permission) {+ if ($permission != 0) {+ return true;+ }}}+return false;}