diff --git a/src/main/java/org/casbin/service/MenuService.java b/src/main/java/org/casbin/service/MenuService.java index b9dbdf0..9e91117 100644 --- a/src/main/java/org/casbin/service/MenuService.java +++ b/src/main/java/org/casbin/service/MenuService.java @@ -115,11 +115,11 @@ private boolean menuMatches(MenuEntity menu, String menuName) { if (menu.getName().equals(menuName)) { return true; } - for (MenuEntity subMenu : menu.getSubMenus()) { - if (menuMatches(subMenu, menuName)) { - return true; - } - } +// for (MenuEntity subMenu : menu.getSubMenus()) { +// if (menuMatches(subMenu, menuName)) { +// return true; +// } +// } return false; }