mirror of
https://github.com/flarum/core.git
synced 2025-10-18 02:06:08 +02:00
Begin implementing permissions page
This commit is contained in:
@@ -13,11 +13,18 @@ class GroupSerializer extends Serializer
|
||||
protected function getDefaultAttributes($group)
|
||||
{
|
||||
return [
|
||||
'id' => (int) $group->id,
|
||||
'nameSingular' => $group->name_singular,
|
||||
'namePlural' => $group->name_plural,
|
||||
'color' => $group->color,
|
||||
'icon' => $group->icon,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return callable
|
||||
*/
|
||||
protected function permissions()
|
||||
{
|
||||
return $this->hasMany('Flarum\Api\Serializers\PermissionSerializer');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user