From 5cdb52a249b2a8fba3a3bd7ba66e5113fd273483 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 29 Aug 2024 21:33:08 +0100 Subject: [PATCH] Corrected flag Signed-off-by: snipe --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 718d5daaa5..b8faca77db 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -703,7 +703,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo public function decodePermissions() { - $permissions = json_decode($this->permissions, JSON_OBJECT_AS_ARRAY|JSON_BIGINT_AS_STRING); + $permissions = json_decode($this->permissions, JSON_OBJECT_AS_ARRAY|JSON_NUMERIC_CHECK); foreach ($permissions as $permission => $value) { $permissions[$permission] = (int) $value; }