Build menu based on user authorization

Hi,

We have the professional edition for dhtmlx Suite and we are trying to use dhtmlxMenu. I am quite new to it. In our system, menu items are displayed based on the logged in user. For every menu item, there should be a check to see if the logged in user is authorized to view that. Only then should the menu item be displayed.

Is it possible to achieve this using dhtmlxMenu? I am trying to build an XML file to load data. I am also open to loading data from javascript. Which would be the best method to achieve our requirement?

Thanks,
Manjusha

Hi,

you may any of these methods. All of them are possible and you may choose one that you more appropriate in your case:

  • generate the xml that corresponds user’s rights
  • build menu using JavaScript
    or control item visibility using hideItem/showItem