feat: close workstation login on RDG 303 disconnect (0.4.6)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 08:16:06 +10:00
parent fd1be5e7e4
commit 606bf53019
8 changed files with 448 additions and 6 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ def post_event_terminate_session(
raise HTTPException(status_code=404, detail="Event not found")
if not event_supports_session_terminate(event):
raise HTTPException(status_code=400, detail="Event type does not support session terminate")
if event_session_terminated(event):
if event_session_terminated(event, db=db):
raise HTTPException(status_code=409, detail="Session already terminated for this event")
linux_cfg = get_effective_linux_admin_config(db)