manageMembership not deleted

This commit is contained in:
Bill Burke 2017-08-10 09:25:44 -04:00
parent 45eac1093d
commit fbeef3e75f

View file

@ -188,6 +188,10 @@ class GroupPermissions implements GroupPermissionEvaluator, GroupPermissionManag
if (manageMembersPermission == null) { if (manageMembersPermission == null) {
authz.getStoreFactory().getPolicyStore().delete(viewMembersPermission.getId()); authz.getStoreFactory().getPolicyStore().delete(viewMembersPermission.getId());
} }
Policy manageMembershipPermission = manageMembershipPermission(group);
if (manageMembershipPermission != null) {
authz.getStoreFactory().getPolicyStore().delete(manageMembershipPermission.getId());
}
Resource resource = groupResource(group); Resource resource = groupResource(group);
if (resource != null) authz.getStoreFactory().getResourceStore().delete(resource.getId()); if (resource != null) authz.getStoreFactory().getResourceStore().delete(resource.getId());
} }