feat: allow non-staff to change energy

This commit is contained in:
2026-08-20 16:19:57 +02:00
committed by duan_j
parent 1dd2b36161
commit ad3e1cbdfb
+1 -1
View File
@@ -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"