mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: hide emails behind a button for staff members
This commit is contained in:
@@ -47,4 +47,8 @@ module UserGuardian
|
||||
end
|
||||
end
|
||||
|
||||
def can_check_emails?(user)
|
||||
is_admin? || (is_staff? && SiteSetting.show_email_on_profile)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user