mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Outgoing emails were not disabled after restoring backup
This commit is contained in:
@@ -401,6 +401,10 @@ module BackupRestore
|
||||
def reload_site_settings
|
||||
log "Reloading site settings..."
|
||||
SiteSetting.refresh!
|
||||
|
||||
log "Disabling outgoing emails for non-stuff users..."
|
||||
user = User.find_by_email(@user_info[:email]) || Discourse.system_user
|
||||
SiteSetting.set_and_log(:disable_emails, 'non-staff', user)
|
||||
end
|
||||
|
||||
def clear_emoji_cache
|
||||
|
||||
Reference in New Issue
Block a user