mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-30 21:03:49 +02:00
Add a warning when you try to load and the server is not started with --local
Ref #1151
This commit is contained in:
parent
8a028a6dce
commit
e74eaa8ea8
@ -167,6 +167,7 @@ class ProjectHandler:
|
|||||||
controller = Controller.instance()
|
controller = Controller.instance()
|
||||||
config = Config.instance()
|
config = Config.instance()
|
||||||
if config.get_section_config("Server").getboolean("local", False) is False:
|
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)
|
response.set_status(403)
|
||||||
return
|
return
|
||||||
project = yield from controller.load_project(request.json.get("path"),)
|
project = yield from controller.load_project(request.json.get("path"),)
|
||||||
|
Loading…
Reference in New Issue
Block a user