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…
Reference in New Issue