ZerothAngel/zPermissions — Issue #2: Conflict group ancestor with perm group.%s
Author: L5D
Created: 2011-11-03 11:30:36+00:00
State: open

// Resolve a group's permissions. Ancestor permissions should be overridden
// by each successive descendant.
private void resolveGroup(Map permissions, Set regions, String world, String group) {
List ancestry = getDao().getAncestry(group);

debug("Ancestry for %s: %s", group, ancestry);
for (String ancestor : ancestry) {
applyPermissions(permissions, ancestor, true, regions, world);

// Add group permissions, if present
// for (String groupPermissionFormat : getGroupPermissionFormats()) {
// permissions.put(String.format(groupPermissionFormat, group), Boolean.TRUE);
// }
}

// Only this group, ancestor not necessary
for (String groupPermissionFormat : getGroupPermissionFormats()) {
permissions.put(String.format(groupPermissionFormat, group), Boolean.TRUE);
}
}

Because iChat (for example), can not find the right group of players if perm is defined with the use of inheritance