mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-18 22:49:45 +00:00
Fix setting of accessLevel on User level permission tests.
This commit is contained in:
parent
399be38680
commit
29746df914
1 changed files with 2 additions and 0 deletions
|
@ -708,6 +708,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
||||||
for (String access : user.getPermissionList()) {
|
for (String access : user.getPermissionList()) {
|
||||||
result.resultType = comparePermissionString(access, permission);
|
result.resultType = comparePermissionString(access, permission);
|
||||||
if (result.resultType != PermissionCheckResult.Type.NOTFOUND) {
|
if (result.resultType != PermissionCheckResult.Type.NOTFOUND) {
|
||||||
|
result.accessLevel = access;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -732,6 +733,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
||||||
for (String access : group.getPermissionList()) {
|
for (String access : group.getPermissionList()) {
|
||||||
result.resultType = comparePermissionString(access, permission);
|
result.resultType = comparePermissionString(access, permission);
|
||||||
if (result.resultType != PermissionCheckResult.Type.NOTFOUND) {
|
if (result.resultType != PermissionCheckResult.Type.NOTFOUND) {
|
||||||
|
result.accessLevel = access;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue