mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-02 13:31:54 +01:00
Fix for an error in checkFullUserPermission caused by silly requests for
a null perm.
This commit is contained in:
parent
e873ebd67d
commit
87ccd7bf46
@ -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.
|
- 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 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.
|
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.
|
@ -677,7 +677,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
|||||||
result.askedPermission = targetPermission;
|
result.askedPermission = targetPermission;
|
||||||
result.resultType = PermissionCheckResult.Type.NOTFOUND;
|
result.resultType = PermissionCheckResult.Type.NOTFOUND;
|
||||||
|
|
||||||
if (user == null || targetPermission == null) {
|
if (user == null || targetPermission == null || targetPermission.isEmpty()) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user