If a permission is found return the correct node for mangcheckp (not

null).
This commit is contained in:
ElgarL 2012-07-10 14:35:08 +01:00
parent 8fac5f6beb
commit 1eac05799f

View file

@ -920,6 +920,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
Group now = stack.pop();
PermissionCheckResult resultNow = checkGroupOnlyPermission(now, targetPermission);
if (!resultNow.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {
resultNow.accessLevel = targetPermission;
return resultNow;
}
for (String sonName : now.getInherits()) {