From 2ace26a6d6a7f39fc559b0bdc39f240c16fcc878 Mon Sep 17 00:00:00 2001 From: himeshr Date: Fri, 19 Jul 2024 12:07:12 +0530 Subject: [PATCH] #721 | Undo change to filter out voided groupPrivileges --- .../server/service/accessControl/GroupPrivilegeService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avni-server-api/src/main/java/org/avni/server/service/accessControl/GroupPrivilegeService.java b/avni-server-api/src/main/java/org/avni/server/service/accessControl/GroupPrivilegeService.java index 36507e1e1..105a0edbd 100644 --- a/avni-server-api/src/main/java/org/avni/server/service/accessControl/GroupPrivilegeService.java +++ b/avni-server-api/src/main/java/org/avni/server/service/accessControl/GroupPrivilegeService.java @@ -183,7 +183,7 @@ public void savePrivileges(GroupPrivilegeContractWeb[] requests, Organisation or List checklistDetails = checklistDetailRepository.findAll(); List 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())