diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2023-01-29 15:59:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 15:59:58 +0100 |
commit | d3f3810fe1f50f0793a40373240504c06dffbd73 (patch) | |
tree | 06fa8ce000d0560aa409c08d688e3a8c69c77a2c /app | |
parent | 1708167dd3bde65eb6cd3bf5ad121c72a630ba65 (diff) |
Fix unserialized `role` on account entities in admin API (#23290)
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/rest/admin/account_serializer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/rest/admin/account_serializer.rb b/app/serializers/rest/admin/account_serializer.rb index ad98a53e8..959884c55 100644 --- a/app/serializers/rest/admin/account_serializer.rb +++ b/app/serializers/rest/admin/account_serializer.rb @@ -2,7 +2,7 @@ class REST::Admin::AccountSerializer < ActiveModel::Serializer attributes :id, :username, :domain, :created_at, - :email, :ip, :role, :confirmed, :suspended, + :email, :ip, :confirmed, :suspended, :silenced, :sensitized, :disabled, :approved, :locale, :invite_request @@ -11,6 +11,7 @@ class REST::Admin::AccountSerializer < ActiveModel::Serializer has_many :ips, serializer: REST::Admin::IpSerializer has_one :account, serializer: REST::AccountSerializer + has_one :role, serializer: REST::RoleSerializer def id object.id.to_s |