From ccd21ccde482588aa747a4dfc7775dc8af30234a Mon Sep 17 00:00:00 2001 From: cory Date: Mon, 1 Jun 2026 07:46:04 +0000 Subject: [PATCH] docs: document suspended membership reinstatement paths --- gatehouse_app/services/network_access_service.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gatehouse_app/services/network_access_service.py b/gatehouse_app/services/network_access_service.py index c1d89aa..26f84e5 100644 --- a/gatehouse_app/services/network_access_service.py +++ b/gatehouse_app/services/network_access_service.py @@ -181,6 +181,7 @@ def assign_access( first_returned = existing continue existing.status = ApprovalState.APPROVED + existing.join_seen = True existing.grant_type = ApprovalGrantType.ASSIGNED existing.granted_by_user_id = granted_by_user_id existing.justification = justification @@ -198,6 +199,7 @@ def assign_access( grant_type=ApprovalGrantType.ASSIGNED, status=ApprovalState.APPROVED, active=False, + join_seen=True, justification=justification, ) req.save() @@ -811,6 +813,7 @@ def join_network_for_device( # Re-open existing.status = ApprovalState.APPROVED existing.active = False + existing.join_seen = True if admin_override: existing.grant_type = ApprovalGrantType.ASSIGNED existing.granted_by_user_id = granted_by_user_id @@ -826,6 +829,7 @@ def join_network_for_device( grant_type=ApprovalGrantType.ASSIGNED if admin_override else ApprovalGrantType.REQUESTED, status=ApprovalState.APPROVED, active=False, + join_seen=True, granted_by_user_id=granted_by_user_id if admin_override else None, ) request.save()