Skip to content

Commit

Permalink
CST-14906 Fix issue with role
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Sep 23, 2024
1 parent 2f3e82a commit c8f0725
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private boolean doesNotContains(ExternalDataObject externalDataObject, Metadatum

private boolean hasRole(Contributor contributor, ContributorRole role) {
ContributorAttributes attributes = contributor.getContributorAttributes();
return attributes != null ? role.equals(attributes.getContributorRole()) : false;
return attributes != null ? role.value().equals(attributes.getContributorRole()) : false;
}

private Optional<String> getContributorName(Contributor contributor) {
Expand Down

0 comments on commit c8f0725

Please sign in to comment.