diff --git a/lib/import/importer.rb b/lib/import/importer.rb index cc242cb9f..4787f585e 100644 --- a/lib/import/importer.rb +++ b/lib/import/importer.rb @@ -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