This question is locked. New answers and comments are not allowed.
Hi,
I have a slight dilemma, that I couldn't find the answer to after scouring the web for the last day and a half.
Here it goes: I am playing around with an MVC2 app, that has a Telerik's MVC Extension pack controls: PanelBar and a Menu, which are both bound to the sitemap. With the built-in authorization decoration of controller action methods, the PanelBar and Menu correctly trim away the child nodes for which the user is not authorized. But the "group" node, is still visible. So if my sitemap's hierarchy was like so:
Home
|------ Index
|------ About
Administration
|------ Add Users
|------ Maintain Users
When a user without Administrative role logs in, they will see the panelbar rendered like so:
Home
|------ Index
|------ About
Administration
So my question is if there is a built-in support to trim away the group node (Administration in this case), if it doesn't have any visible children. And if not, is there an elegant way of doing it?
Thank you!
I have a slight dilemma, that I couldn't find the answer to after scouring the web for the last day and a half.
Here it goes: I am playing around with an MVC2 app, that has a Telerik's MVC Extension pack controls: PanelBar and a Menu, which are both bound to the sitemap. With the built-in authorization decoration of controller action methods, the PanelBar and Menu correctly trim away the child nodes for which the user is not authorized. But the "group" node, is still visible. So if my sitemap's hierarchy was like so:
Home
|------ Index
|------ About
Administration
|------ Add Users
|------ Maintain Users
When a user without Administrative role logs in, they will see the panelbar rendered like so:
Home
|------ Index
|------ About
Administration
So my question is if there is a built-in support to trim away the group node (Administration in this case), if it doesn't have any visible children. And if not, is there an elegant way of doing it?
Thank you!