diff --git a/orcid-web/src/main/java/org/orcid/frontend/web/controllers/PublicRecordController.java b/orcid-web/src/main/java/org/orcid/frontend/web/controllers/PublicRecordController.java index 733c6f3dfcc..feb81265199 100644 --- a/orcid-web/src/main/java/org/orcid/frontend/web/controllers/PublicRecordController.java +++ b/orcid-web/src/main/java/org/orcid/frontend/web/controllers/PublicRecordController.java @@ -200,7 +200,7 @@ PublicRecord getRecord(String orcid) { // Fill email domains List 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));