Skip to content

Commit

Permalink
Update MenuService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
amikecoXu committed Feb 1, 2024
1 parent d15f850 commit 2cf1255
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/casbin/service/MenuService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2cf1255

Please sign in to comment.