mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
If a permission is found return the correct node for mangcheckp (not
null).
This commit is contained in:
parent
8fac5f6beb
commit
1eac05799f
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user