Skip to content

Commit

Permalink
fix(app): Only allow linking of ORCID to non-ORCID primary accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Mar 1, 2023
1 parent 1d53c32 commit 88519ac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/openneuro-components/src/user/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ export const UserMenu = ({ profile, signOutAndRedirect }: UserMenuProps) => {
<li className="user-menu-link">
<Link to="/keygen"> Obtain an API Key </Link>
</li>
<li className="user-menu-link">
<a href="/crn/auth/orcid?link=true"> Link ORCID to my account </a>
</li>
{profile.provider !== 'orcid' && (
<li className="user-menu-link">
<a href="/crn/auth/orcid?link=true">
{' '}
Link ORCID to my account{' '}
</a>
</li>
)}
{profile.admin && (
<li className="user-menu-link">
<Link to="/admin">Admin</Link>
Expand Down

0 comments on commit 88519ac

Please sign in to comment.