Skip to content

Commit

Permalink
On the public page, we should use the orcid and not the getCurrentUse…
Browse files Browse the repository at this point in the history
…rOrcid function
  • Loading branch information
amontenegro committed Aug 20, 2024
1 parent 13e0a6f commit b554a35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ PublicRecord getRecord(String orcid) {
// Fill email domains
List<ProfileEmailDomainEntity> emailDomains = null;
if (Features.EMAIL_DOMAINS.isActive()) {
emailDomains = profileEmailDomainManagerReadOnly.getPublicEmailDomains(getCurrentUserOrcid());
emailDomains = profileEmailDomainManagerReadOnly.getPublicEmailDomains(orcid);
}

publicRecord.setEmails(org.orcid.pojo.ajaxForm.Emails.valueOf(filteredEmails, emailDomains));
Expand Down

0 comments on commit b554a35

Please sign in to comment.