Skip to content

Commit

Permalink
#721 | Undo change to filter out voided groupPrivileges
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jul 19, 2024
1 parent 57f61c4 commit 2ace26a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public void savePrivileges(GroupPrivilegeContractWeb[] requests, Organisation or
List<ChecklistDetail> checklistDetails = checklistDetailRepository.findAll();
List<Group> groups = groupRepository.findAll();

Arrays.stream(requests).filter(grpPrivyConWebRequest -> !grpPrivyConWebRequest.isVoided()).forEach(request -> {
Arrays.stream(requests).forEach(request -> {
Group targetedGroup = getGroup(request, organisation, groups);
GroupPrivilege groupPrivilege = groupPrivileges.stream().filter(gp ->
Objects.equals(targetedGroup.getUuid(), gp.getGroupUuid())
Expand Down

0 comments on commit 2ace26a

Please sign in to comment.