Corrected flag

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-29 21:33:08 +01:00
parent ea38d6c2f3
commit 5cdb52a249

View file

@ -703,7 +703,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
public function decodePermissions() 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) { foreach ($permissions as $permission => $value) {
$permissions[$permission] = (int) $value; $permissions[$permission] = (int) $value;
} }