diff --git a/src/main/java/edu/ucdavis/dss/ipa/services/jpa/JpaUserRoleService.java b/src/main/java/edu/ucdavis/dss/ipa/services/jpa/JpaUserRoleService.java index 72a38d12..32026421 100644 --- a/src/main/java/edu/ucdavis/dss/ipa/services/jpa/JpaUserRoleService.java +++ b/src/main/java/edu/ucdavis/dss/ipa/services/jpa/JpaUserRoleService.java @@ -71,7 +71,7 @@ public List findByLoginIdAndWorkgroup(String loginId, Workgroup workgr List workgroupUserRoles = new ArrayList(); for( UserRole userRole : user.getUserRoles() ) { - if ( userRole.getWorkgroup() != null && userRole.getWorkgroup().equals(workgroup) ) { + if ( userRole.getWorkgroup() != null && userRole.getWorkgroup().getId() == workgroup.getId() ) { workgroupUserRoles.add(userRole); } }