We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d98f434 commit 39cc276Copy full SHA for 39cc276
auth-api/src/auth_api/resources/v1/org.py
@@ -382,6 +382,9 @@ def get_organization_affiliations(org_id):
382
def new_affiliation_search(org_id):
383
"""Get all affiliated entities for the given org by calling into Names and LEAR."""
384
# get affiliation identifiers and the urls for the source data
385
+ org = OrgService.find_by_org_id(org_id, allowed_roles=ALL_ALLOWED_ROLES)
386
+ if org is None:
387
+ raise BusinessException(Error.DATA_NOT_FOUND, None)
388
affiliations = AffiliationModel.find_affiliations_by_org_id(org_id)
389
search_details = AffiliationSearchDetails.from_request_args(request)
390
affiliations_details_list = asyncio.run(
0 commit comments