Skip to content

Commit

Permalink
fix: Only return on behalf of as true if assertion origin orcid its…
Browse files Browse the repository at this point in the history
… the user (#2068)
  • Loading branch information
DanielPalafox authored Oct 4, 2023
1 parent ee2b8b9 commit 5e3f4c1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ export class AffiliationsSortService {
affiliationGroup: AffiliationGroup,
orcid: string
): boolean {
const obo = !!(
affiliationGroup.defaultAffiliation.assertionOriginName ||
affiliationGroup.defaultAffiliation.assertionOriginOrcid
)
const obo = affiliationGroup.defaultAffiliation.assertionOriginOrcid === orcid
return obo ? obo : affiliationGroup.defaultAffiliation.source === orcid
}
}

0 comments on commit 5e3f4c1

Please sign in to comment.