mirror of
https://github.com/discourse/discourse.git
synced 2025-03-15 18:45:35 +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
|
protected
|
||||||
|
|
||||||
def ensure_import_is_enabled
|
def ensure_import_is_enabled
|
||||||
raise Import::ImportDisabledError unless SiteSetting.allow_restore?
|
raise Import::ImportDisabledError unless Rails.env.development? || SiteSetting.allow_restore?
|
||||||
end
|
end
|
||||||
|
|
||||||
def ensure_no_operation_is_running
|
def ensure_no_operation_is_running
|
||||||
|
Loading…
x
Reference in New Issue
Block a user