mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +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()) {
|
||||
result.resultType = comparePermissionString(access, permission);
|
||||
if (result.resultType != PermissionCheckResult.Type.NOTFOUND) {
|
||||
result.accessLevel = access;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -732,6 +733,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
|||
for (String access : group.getPermissionList()) {
|
||||
result.resultType = comparePermissionString(access, permission);
|
||||
if (result.resultType != PermissionCheckResult.Type.NOTFOUND) {
|
||||
result.accessLevel = access;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue