From 82c2b13a7f3bdf5971138c2157fbe006f158af4f Mon Sep 17 00:00:00 2001 From: luxferre Date: Thu, 28 May 2026 14:05:31 +0100 Subject: [PATCH] minor: contact endpoints allowed preapproval --- src/organisation/dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/organisation/dependencies.py b/src/organisation/dependencies.py index 3edd8be..b73629b 100644 --- a/src/organisation/dependencies.py +++ b/src/organisation/dependencies.py @@ -26,7 +26,7 @@ def get_org_model(db, request: Request, org_id: int): if org_model is None: raise OrgNotFoundException(org_id) - pre_approval_endpoints = ["PATCH/org/status", "PATCH/org/questionnaire", "GET/org/id"] + pre_approval_endpoints = ["PATCH/org/status", "PATCH/org/questionnaire", "GET/org/id", "GET/org/contact", "PATCH/org/contact"] current_request = f"{request.method}{request.url.path}" if current_request not in pre_approval_endpoints and org_model.status != OrgStatus.APPROVED: raise AwaitingApprovalException(org_id)