Skip to content

Commit

Permalink
#2804 fixed user roles join type def
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWahnschaffe committed Mar 23, 2022
1 parent 8888f63 commit 4ea64ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -523,7 +523,7 @@ public Predicate buildUserRightsFilter(Root<User> from, Collection<UserRight> us
// TODO #4461: Replace by joinging rights of roles
Set<UserRole> userRoles = userRoleConfigFacade.getEffectiveUserRoles(userRights);
if (!userRoles.isEmpty()) {
Join<User, UserRight> rolesJoin = from.join(User.USER_ROLES, JoinType.LEFT);
Join<User, UserRole> rolesJoin = from.join(User.USER_ROLES, JoinType.LEFT);
return rolesJoin.in(Collections.singletonList(userRoles));
}
}
Expand Down

0 comments on commit 4ea64ab

Please sign in to comment.