FIX: do not explicitly show email of flagger / flagged user

This commit is contained in:
Arpit Jalan 2017-04-20 21:45:52 +05:30
parent dfe3c162cc
commit 5d9d2cf287
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ class FlaggedUserSerializer < BasicUserSerializer
:can_be_deleted,
:post_count,
:topic_count,
:email,
:ip_address
def can_delete_all_posts

View File

@ -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?