commit
4df7fd644d
1 changed files with 5 additions and 1 deletions
|
@ -185,9 +185,13 @@ class GroupPermissions implements GroupPermissionEvaluator, GroupPermissionManag
|
|||
authz.getStoreFactory().getPolicyStore().delete(manageMembersPermission.getId());
|
||||
}
|
||||
Policy viewMembersPermission = viewMembersPermission(group);
|
||||
if (manageMembersPermission == null) {
|
||||
if (viewMembersPermission == null) {
|
||||
authz.getStoreFactory().getPolicyStore().delete(viewMembersPermission.getId());
|
||||
}
|
||||
Policy manageMembershipPermission = manageMembershipPermission(group);
|
||||
if (manageMembershipPermission != null) {
|
||||
authz.getStoreFactory().getPolicyStore().delete(manageMembershipPermission.getId());
|
||||
}
|
||||
Resource resource = groupResource(group);
|
||||
if (resource != null) authz.getStoreFactory().getResourceStore().delete(resource.getId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue