fix(symbols): add authentication to symbol raw endpoint

Enable Symbol.Audit privilege requirement for the symbol file download
endpoint. This was previously disabled as a workaround for a web-ui bug.
This commit is contained in:
YueGuobin 2026-04-07 20:56:20 +08:00
parent 8041d2906c
commit 8ab3243c79
No known key found for this signature in database

View File

@ -58,8 +58,7 @@ def get_symbols() -> List[dict]:
@router.get(
"/{symbol_id:path}/raw",
responses={404: {"model": schemas.ErrorMessage, "description": "Could not find symbol"}},
# FIXME: this is a temporary workaround due to a bug in the web-ui: https://github.com/GNS3/gns3-web-ui/issues/1466
# dependencies=[Depends(has_privilege("Symbol.Audit"))]
dependencies=[Depends(has_privilege("Symbol.Audit"))]
)
async def get_symbol(symbol_id: str, request: Request) -> Response:
"""