Add a warning when you try to load and the server is not started with --local

Ref #1151
pull/1153/head
Julien Duponchelle 7 years ago
parent 8a028a6dce
commit e74eaa8ea8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -167,6 +167,7 @@ class ProjectHandler:
controller = Controller.instance()
config = Config.instance()
if config.get_section_config("Server").getboolean("local", False) is False:
log.error("Can't load the project the server is not started with --local")
response.set_status(403)
return
project = yield from controller.load_project(request.json.get("path"),)

Loading…
Cancel
Save