mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
FEATURE: Allow plugins to manipulate site settings during backup restore
This commit is contained in:
parent
34a76bf106
commit
1f118b1309
|
@ -412,6 +412,8 @@ module BackupRestore
|
|||
log "Reloading site settings..."
|
||||
SiteSetting.refresh!
|
||||
|
||||
DiscourseEvent.trigger(:site_settings_restored)
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user