J
jts-law
Guest
Edsel, I decided to put the logic that determines which menu items a user has access to on the backend service. My custom module that generates the menu invokes a function to get the menus and then generates the HTML from the returned records and sets the state.views['side-navigation'].template to the generated HTML. This is working fine now. Regarding the individual view validation, do you have any recommendations on the best place to add logic to validate access to each view before loading/displaying? I am currently calling my verifyPageAccess() method from the page controller constructor and my issue is that the page partially loads before being redirected. Making the call from within the router-events.js onInit function results in the same results. Ideally the user shouldn't see anything that they don't have access to. Louis
Continue reading...
Continue reading...