mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
Used the term suspended instead of banned.
This commit is contained in:
@ -15,9 +15,9 @@ class AdminUserSerializer < BasicUserSerializer
|
||||
:avatar_template,
|
||||
:can_approve,
|
||||
:approved,
|
||||
:banned_at,
|
||||
:banned_till,
|
||||
:is_banned,
|
||||
:suspended_at,
|
||||
:suspended_till,
|
||||
:suspended,
|
||||
:ip_address,
|
||||
:can_send_activation_email,
|
||||
:can_activate,
|
||||
@ -32,8 +32,8 @@ class AdminUserSerializer < BasicUserSerializer
|
||||
end
|
||||
end
|
||||
|
||||
def is_banned
|
||||
object.is_banned?
|
||||
def suspended
|
||||
object.suspended?
|
||||
end
|
||||
|
||||
def can_impersonate
|
||||
|
Reference in New Issue
Block a user