Skip to content

Commit

Permalink
24455 - Small tweak for ALL_ALLOWED_ROLES (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Nov 18, 2024
1 parent 7114d00 commit f0e67cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth-api/src/auth_api/services/affiliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def create_affiliation(org_id, business_identifier, environment=None, pass_code=
# Validate if org_id is valid by calling Org Service.
logger.info(f"<create_affiliation org_id:{org_id} business_identifier:{business_identifier}")
# Security check below.
org = OrgService.find_by_org_id(org_id, allowed_roles=ALL_ALLOWED_ROLES)
org = OrgService.find_by_org_id(org_id, allowed_roles=(*ALL_ALLOWED_ROLES, Role.SKIP_AFFILIATION_AUTH.value))
if org is None:
raise BusinessException(Error.DATA_NOT_FOUND, None)

Expand Down

0 comments on commit f0e67cb

Please sign in to comment.