Html.Menu && Authorize(Roles="Admin")

Feb 22, 2010 at 9:42 AM


I am developing a POC that uses the MvcSiteMapProvider.  Is it possible to limit the menu entries based on the AuthorizeAttribute and specific role.  It seems that the Menu helper is ignoring the attribute



Feb 22, 2010 at 1:08 PM

AuthorizeAttribute is considered when generating a menu?

Feb 22, 2010 at 1:17 PM

Hi Maarten,

I get different root results by calling Html.Menu and Html.SiteMap.  Html.SiteMap applies the Authorize correctly and Html.Menu not



Feb 22, 2010 at 2:32 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.