mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Corrected flag
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ea38d6c2f3
commit
5cdb52a249
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue