Justoverclock I've noticed that in 2.x the UserSerializer has been removed, how can i add more attribute into the User model? i want to serialize some new permission so i can access it in the frontend.
SychO You can add new fields to existing API resources: https://docs.flarum.org/2.x/extend/api#adding-fields example: flarum/frameworkblob/2.x/extensions/suspend/extend.php#L42-L43 flarum/frameworkblob/2.x/extensions/suspend/src/Api/UserResourceFields.php