1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 00:28:22 +02:00

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 4acce8bfab
commit 70430a4aed

View File

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