Skip to content

Commit

Permalink
compare entities by id
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroldwong committed Mar 13, 2024
1 parent 1ebe375 commit d656c5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public List<UserRole> findByLoginIdAndWorkgroup(String loginId, Workgroup workgr

List<UserRole> workgroupUserRoles = new ArrayList<UserRole>();
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);
}
}
Expand Down

0 comments on commit d656c5d

Please sign in to comment.