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

Feb 22, 2010 at 8:42 AM

Hi,

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

Regards

Jaco 

Coordinator
Feb 22, 2010 at 12:08 PM

AuthorizeAttribute is considered when generating a menu?

Feb 22, 2010 at 12: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

Regards

Jaco 

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