FIX: hide sso email behind a button click and log views (#11186)

This commit is contained in:
Arpit Jalan
2020-11-11 00:42:44 +05:30
committed by GitHub
parent cf4be109e2
commit 00b41437b0
9 changed files with 74 additions and 23 deletions

View File

@ -92,6 +92,10 @@ module UserGuardian
is_admin? || (is_staff? && SiteSetting.moderators_view_emails)
end
def can_check_sso_email?(user)
user && is_admin?
end
def restrict_user_fields?(user)
user.trust_level == TrustLevel[0] && anonymous?
end