server: added mount checks to mount and autoamtion

This commit is contained in:
2026-06-24 15:30:06 +02:00
committed by appleb_m
parent 50a0a4938b
commit 746bc147a2
+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: