From d3edbbcb49b67db8f8a21e19659db198142c9708 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 5 Dec 2015 23:55:58 +0100 Subject: [PATCH] #285 #319 Add support for wildcard permissions - Fix accidental recursive call --- .../java/fr/xephi/authme/permission/PermissionsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/permission/PermissionsManager.java b/src/main/java/fr/xephi/authme/permission/PermissionsManager.java index 02b4194b2..52e942266 100644 --- a/src/main/java/fr/xephi/authme/permission/PermissionsManager.java +++ b/src/main/java/fr/xephi/authme/permission/PermissionsManager.java @@ -315,7 +315,7 @@ public class PermissionsManager implements PermissionsService { public boolean hasPermission(Player player, PermissionNode permissionNode, boolean def) { return hasPermission(player, permissionNode.getNode(), def) - || hasPermission(player, permissionNode.getWildcardNode(), def); + || hasPermission(player, permissionNode.getWildcardNode().getNode(), def); } public boolean hasPermission(Player player, Iterable nodes, boolean def) {