Skip to content

Commit

Permalink
Email domain fix bug on public page (#7069)
Browse files Browse the repository at this point in the history
* Deactivated records should get 409 on GET requests

* Sequence should start at 100000

* On the public page, we should use the orcid and not the getCurrentUserOrcid function
  • Loading branch information
amontenegro committed Aug 22, 2024
1 parent 8cfb7d8 commit 9a64549
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 9a64549

Please sign in to comment.