FIX: do not explicitly show email of flagger / flagged user
This commit is contained in:
parent
dfe3c162cc
commit
5d9d2cf287
|
@ -3,7 +3,6 @@ class FlaggedUserSerializer < BasicUserSerializer
|
|||
:can_be_deleted,
|
||||
:post_count,
|
||||
:topic_count,
|
||||
:email,
|
||||
:ip_address
|
||||
|
||||
def can_delete_all_posts
|
||||
|
|
|
@ -159,7 +159,7 @@ class Guardian
|
|||
end
|
||||
|
||||
def can_view_action_logs?(target)
|
||||
is_staff? && target
|
||||
target.present? && is_staff?
|
||||
end
|
||||
|
||||
# Can we approve it?
|
||||
|
|
Loading…
Reference in New Issue