Convert permission IDs into strings

This commit is contained in:
Toby Zerner 2015-08-02 18:02:35 +09:30
parent 30700734e8
commit 5c1b62107c

View File

@ -47,7 +47,7 @@ class Permission extends Model
$permissions = [];
foreach (static::get() as $permission) {
$permissions[$permission->permission][] = $permission->group_id;
$permissions[$permission->permission][] = (string) $permission->group_id;
}
return $permissions;