bug5239: fixed problem with cleaning up ACLs after removing UserGroup

This commit is contained in:
Axel Uhl committed 2020-08-01 00:12:08 +02:00
1 parent c907c2706e
commit 2155b7d2d3
1 file changed
+1 -1
@@ -414,11 +414,11 @@ public class AccessControlStoreImpl implements AccessControlStore {
}
userGroupToOwnership.remove(effectiveUserGroup);
}
Set<AccessControlListAnnotation> knownACLEntries = userGroupToAccessControlListAnnotation
.get(effectiveUserGroup);
if (knownACLEntries != null) {
for (AccessControlListAnnotation acl : knownACLEntries) {
acl.getAnnotation().setPermissions(effectiveUserGroup, Collections.emptySet());
internalRemoveUserGroupToACLMapping(effectiveUserGroup, acl);
mongoObjectFactory.storeAccessControlList(acl);
}