mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-22 16:59:02 +00:00
"Local" command line parameter is only for stopping
a server that has been started by the desktop GUI
This commit is contained in:
@ -60,8 +60,7 @@ def check_path_allowed(path: str):
|
||||
if len(os.path.commonprefix([project_directory, path])) == len(project_directory):
|
||||
return
|
||||
|
||||
if Config.instance().settings.Server.local is False:
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="The path is not allowed")
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f"The path {path} is not allowed")
|
||||
|
||||
|
||||
def get_mountpoint(path: str):
|
||||
|
Reference in New Issue
Block a user