mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-04 21:58:25 +02:00
Fix setting of accessLevel on User level permission tests.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user