FIX: Server side restore should work in development mode even if the

setting is disabled.
This commit is contained in:
Robin Ward 2014-09-11 15:12:56 -04:00
parent d492bac587
commit fe7877b558

View file

@ -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