Skip to content

Commit

Permalink
avniproject/avni-client#1365 | Add missing voided check
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed May 3, 2024
1 parent 1ae4646 commit 59451f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public List<GroupPrivilege> getAllGroupPrivileges(long groupId) {
privilegeList.stream()
.filter(privilege -> privilege.getEntityType() == PrivilegeEntityType.Subject && isGroupSubjectTypePrivilege(subjectType, privilege))
.forEach(subjectPrivilege -> {
if (subjectPrivilege.getType() == PrivilegeType.ViewSubject && subjectType.getType().equals(Subject.User)) {
if (subjectPrivilege.getType() == PrivilegeType.ViewSubject && subjectType.getType().equals(Subject.User) && !subjectType.isVoided()) {
return; //Continue, already added this privilege
}
GroupPrivilege groupPrivilege = new GroupPrivilege();
Expand Down

0 comments on commit 59451f3

Please sign in to comment.