docs: document suspended membership reinstatement paths

This commit is contained in:
2026-06-01 07:46:04 +00:00
parent 55f24ea9e5
commit ccd21ccde4
@@ -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()