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 first_returned = existing
continue continue
existing.status = ApprovalState.APPROVED existing.status = ApprovalState.APPROVED
existing.join_seen = True
existing.grant_type = ApprovalGrantType.ASSIGNED existing.grant_type = ApprovalGrantType.ASSIGNED
existing.granted_by_user_id = granted_by_user_id existing.granted_by_user_id = granted_by_user_id
existing.justification = justification existing.justification = justification
@@ -198,6 +199,7 @@ def assign_access(
grant_type=ApprovalGrantType.ASSIGNED, grant_type=ApprovalGrantType.ASSIGNED,
status=ApprovalState.APPROVED, status=ApprovalState.APPROVED,
active=False, active=False,
join_seen=True,
justification=justification, justification=justification,
) )
req.save() req.save()
@@ -811,6 +813,7 @@ def join_network_for_device(
# Re-open # Re-open
existing.status = ApprovalState.APPROVED existing.status = ApprovalState.APPROVED
existing.active = False existing.active = False
existing.join_seen = True
if admin_override: if admin_override:
existing.grant_type = ApprovalGrantType.ASSIGNED existing.grant_type = ApprovalGrantType.ASSIGNED
existing.granted_by_user_id = granted_by_user_id 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, grant_type=ApprovalGrantType.ASSIGNED if admin_override else ApprovalGrantType.REQUESTED,
status=ApprovalState.APPROVED, status=ApprovalState.APPROVED,
active=False, active=False,
join_seen=True,
granted_by_user_id=granted_by_user_id if admin_override else None, granted_by_user_id=granted_by_user_id if admin_override else None,
) )
request.save() request.save()