diff --git a/src/main/java/cokr/xit/base/menu/service/bean/MenuServiceBean.java b/src/main/java/cokr/xit/base/menu/service/bean/MenuServiceBean.java index c831b6c..c579abc 100644 --- a/src/main/java/cokr/xit/base/menu/service/bean/MenuServiceBean.java +++ b/src/main/java/cokr/xit/base/menu/service/bean/MenuServiceBean.java @@ -44,14 +44,14 @@ public class MenuServiceBean extends AbstractServiceBean implements MenuService List actions = currentUser().getAccessibleActions(); List topMenus = getMenuContext().topElements(); - List accessible = new ArrayList<>(); + List userMenus = new ArrayList<>(); for (Menu menu: topMenus) { DataObject dataobject = menu.toDataObject(actions); if (dataobject != null) - accessible.add(dataobject); + userMenus.add(dataobject); } - return accessible; + return userMenus; } @Override