diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb index 57870cfab95..f4f66121b87 100644 --- a/lib/backup_restore/restorer.rb +++ b/lib/backup_restore/restorer.rb @@ -403,7 +403,7 @@ module BackupRestore log "Reloading site settings..." SiteSetting.refresh! - if @disable_emails + if @disable_emails && SiteSetting.disable_emails == 'no' log "Disabling outgoing emails for non-staff users..." user = User.find_by_email(@user_info[:email]) || Discourse.system_user SiteSetting.set_and_log(:disable_emails, 'non-staff', user)