mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Convert permission IDs into strings
This commit is contained in:
parent
30700734e8
commit
5c1b62107c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user