Skip to content

Commit 7112c33

Browse files
authored
Merge pull request #6731 from ORCID/FixFetchingGrantedAuthorities
Remove invalid profileEntity.id reference
2 parents 625b3ca + ff756ee commit 7112c33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/ProfileDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public boolean deactivate(String orcid) {
677677
@SuppressWarnings("unchecked")
678678
@Override
679679
public List<OrcidGrantedAuthority> getGrantedAuthoritiesForProfile(String orcid) {
680-
Query query = entityManager.createQuery("from OrcidGrantedAuthority where profileEntity.id = :orcid");
680+
Query query = entityManager.createQuery("from OrcidGrantedAuthority where orcid = :orcid");
681681
query.setParameter("orcid", orcid);
682682
return query.getResultList();
683683
}

0 commit comments

Comments
 (0)