From 23c9a66c803484ae04c54e2f16dea1216c606677 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Mon, 26 Sep 2011 01:32:12 -0400 Subject: [PATCH] Fixed gaping huge security flaw. --- .../java/com/sk89q/bukkit/migration/DinnerPermsResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java b/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java index 6ed5f3281..4eefcd357 100644 --- a/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java +++ b/src/main/java/com/sk89q/bukkit/migration/DinnerPermsResolver.java @@ -40,11 +40,11 @@ public class DinnerPermsResolver implements PermissionsResolver { } public boolean hasPermission(String name, String permission) { - Player player = server.getPlayer(name); + Player player = server.getPlayerExact(name); if (player == null) { return false; // Permissions are only registered for online players } - if ( player.hasPermission("*") || player.hasPermission(permission)) { + if (player.hasPermission("*") || player.hasPermission(permission)) { return true; } int dotPos = permission.lastIndexOf(".");