server: added mount checks to mount and autoamtion
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user