#285 #319 Add support for wildcard permissions

- Fix accidental recursive call
This commit is contained in:
ljacqu 2015-12-05 23:55:58 +01:00
parent 63a7cd00df
commit d3edbbcb49

View File

@ -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<PermissionNode> nodes, boolean def) {