* Add `sensitized` to Admin::Account serializer (fix #19148) * remove whitespace, please linterlolsob-rspec
parent
9d3cf4d9d4
commit
821fcfb930
|
@ -3,7 +3,7 @@
|
|||
class REST::Admin::AccountSerializer < ActiveModel::Serializer
|
||||
attributes :id, :username, :domain, :created_at,
|
||||
:email, :ip, :role, :confirmed, :suspended,
|
||||
:silenced, :disabled, :approved, :locale,
|
||||
:silenced, :sensitized, :disabled, :approved, :locale,
|
||||
:invite_request
|
||||
|
||||
attribute :created_by_application_id, if: :created_by_application?
|
||||
|
@ -32,6 +32,10 @@ class REST::Admin::AccountSerializer < ActiveModel::Serializer
|
|||
object.silenced?
|
||||
end
|
||||
|
||||
def sensitized
|
||||
object.sensitized?
|
||||
end
|
||||
|
||||
def confirmed
|
||||
object.user_confirmed?
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue