FEATURE: hide emails behind a button for staff members

This commit is contained in:
Régis Hanol
2014-09-29 22:31:05 +02:00
parent ff795a267d
commit 7e309a21cf
25 changed files with 181 additions and 86 deletions

View File

@@ -47,4 +47,8 @@ module UserGuardian
end
end
def can_check_emails?(user)
is_admin? || (is_staff? && SiteSetting.show_email_on_profile)
end
end