mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: hide sso email behind a button click and log views (#11186)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user