minor: contact endpoints allowed preapproval
This commit is contained in:
parent
9a1975c389
commit
82c2b13a7f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue