mirror of
https://github.com/discourse/discourse.git
synced 2025-03-15 02:55:28 +08:00
FIX: Server side restore should work in development mode even if the
setting is disabled.
This commit is contained in:
parent
d492bac587
commit
fe7877b558
@ -73,7 +73,7 @@ module Import
|
||||
protected
|
||||
|
||||
def ensure_import_is_enabled
|
||||
raise Import::ImportDisabledError unless SiteSetting.allow_restore?
|
||||
raise Import::ImportDisabledError unless Rails.env.development? || SiteSetting.allow_restore?
|
||||
end
|
||||
|
||||
def ensure_no_operation_is_running
|
||||
|
Loading…
x
Reference in New Issue
Block a user