feat: allow non-staff to change energy
This commit is contained in:
@@ -533,7 +533,7 @@ async def change_energy(value: float, plot: bool = False, token: str = Depends(o
|
||||
"OK" on success.
|
||||
"""
|
||||
logger.debug(f"Changing energy to {value} (plot={plot})")
|
||||
auth.check_jwt_staff(cfg, auth.parse_token(token))
|
||||
auth.parse_token(token) # non-staff should be able to change_energy
|
||||
daq.change_energy(value=value, plot=plot)
|
||||
return "OK"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user