Skip to content

Commit 05f035b

Browse files
authored
22113 - Removed logic that stops conditionally-approved NRs from being affiliated (bcgov#3351)
1 parent 03322ae commit 05f035b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

auth-api/src/auth_api/services/affiliation.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,6 @@ def create_new_business_affiliation( # pylint: disable=too-many-locals
279279
if not (invoices and invoices["invoices"] and invoices["invoices"][0].get("statusCode") == "COMPLETED"):
280280
raise BusinessException(Error.NR_NOT_PAID, None)
281281

282-
# If consentFlag is not R, N or Null for a CONDITIONAL NR throw error
283-
if status == NRStatus.CONDITIONAL.value and nr_json.get("consentFlag", None) not in (None, "R", "N"):
284-
raise BusinessException(Error.NR_NOT_APPROVED, None)
285-
286282
if not user_is_staff and (
287283
(phone and re.sub(r"\D", "", phone) != re.sub(r"\D", "", nr_phone))
288284
or (email and email.casefold() != nr_email.casefold())

0 commit comments

Comments
 (0)