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

Fix for an error in checkFullUserPermission caused by silly requests for

a null perm.
This commit is contained in:
ElgarL
2011-11-03 20:29:30 +00:00
parent ceba3e0899
commit 5ef08d2250
2 changed files with 3 additions and 2 deletions

View File

@@ -68,4 +68,5 @@ v 1.5:
- GM will now check to see if it's data files have been changed at each scheduled save.
If the files have been altered (on disc) it will reload, so long as the in-memory data hasn't changed.
If the files on Disc have changed AND there have been changes to it's in-memory data it will show a warning.
You then MUST issue a '/mansave force' to overwrite the disc files, or a '/manload' to overwrite the memory data.
You then MUST issue a '/mansave force' to overwrite the disc files, or a '/manload' to overwrite the memory data.
- Fix for an error in checkFullUserPermission caused by silly requests for a null perm.

View File

@@ -677,7 +677,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
result.askedPermission = targetPermission;
result.resultType = PermissionCheckResult.Type.NOTFOUND;
if (user == null || targetPermission == null) {
if (user == null || targetPermission == null || targetPermission.isEmpty()) {
return result;
}