server: added mount checks to mount and autoamtion

This commit is contained in:
2026-06-22 10:44:56 +02:00
parent b6ab4d1e5e
commit 316f4d18c1
+3
View File
@@ -1026,6 +1026,8 @@ async def mount(dbid: int, token: str = Depends(oauth2_scheme), reference: bool
logger.debug(f"Mount {dbid}")
auth.check_jwt_rw(cfg, auth.parse_token(token))
daq.check_tell_mount_start_conditions()
if reference:
st = daq.reference_tools
else:
@@ -1574,6 +1576,7 @@ async def auto(s: SampleShortInfo, token: str = Depends(oauth2_scheme)):
Formatted string of the total runtime.
"""
auth.check_jwt_rw(cfg, auth.parse_token(token))
daq.check_tell_mount_start_conditions()
try:
runtime = daq.measure(s)
except Exception as e: