mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: new disable_emails site setting
This commit is contained in:
@@ -22,6 +22,7 @@ module Email
|
||||
end
|
||||
|
||||
def send
|
||||
return if SiteSetting.disable_emails
|
||||
return skip(I18n.t('email_log.message_blank')) if @message.blank?
|
||||
return skip(I18n.t('email_log.message_to_blank')) if @message.to.blank?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user