Skip to content

Commit

Permalink
Merged in CST-12350 (pull request DSpace#1236)
Browse files Browse the repository at this point in the history
CST-12350

Approved-by: Giuseppe Digilio
  • Loading branch information
vins01-4science authored and atarix83 committed Nov 3, 2023
2 parents 3fa655e + e2edcae commit d369d2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public RegistrationRest convert(RegistrationData registrationData, Projection pr
EPerson ePerson = null;
try {
ePerson = accountService.getEPerson(context, registrationData.getToken());
if (ePerson == null && registrationData.getRegistrationType().equals(RegistrationTypeEnum.ORCID)) {
ePerson = context.getCurrentUser();
}
} catch (SQLException | AuthorizeException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit d369d2f

Please sign in to comment.