getUserMenus() 수정

master
xit 2 years ago
parent d088bfbe17
commit e36c4b0b66

@ -44,14 +44,14 @@ public class MenuServiceBean extends AbstractServiceBean implements MenuService
List<String> actions = currentUser().getAccessibleActions();
List<Menu> topMenus = getMenuContext().topElements();
List<DataObject> accessible = new ArrayList<>();
List<DataObject> 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

Loading…
Cancel
Save