mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 03:35:00 +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 = [];
|
$permissions = [];
|
||||||
|
|
||||||
foreach (static::get() as $permission) {
|
foreach (static::get() as $permission) {
|
||||||
$permissions[$permission->permission][] = $permission->group_id;
|
$permissions[$permission->permission][] = (string) $permission->group_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $permissions;
|
return $permissions;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user