Hello,
I'm trying to apply this to my sitemap menu and it works from home page.
However, this doesn't work properly from an area controller : when I'm on an area page, the security trimming doesn't seem to work cause all menus are displayed although user is not authorized.
Can you please help me fix this ? Does this have something to do with routing (although deduced urls are correct, using area/controller/action attributes in the xml sitemap) ?
Here is what my RouteConfig.vb looks like :
routes.MapRoute(
name:=
"Default"
,
url:=
"{controller}/{action}/{id}"
,
defaults:=
New
With
{.controller =
"Home"
, .action =
"Index"
, .id = UrlParameter.
Optional
},
namespaces:={
"WebMVC.Controllers"
,
"WebMVC.Areas.MyFirstArea.Controllers"
,
"WebMVC.MySecondArea.Controllers"
}
).DataTokens(
"UseNamespaceFallback"
) =
False
Also, the hideparent property is working only with the closest parent, but not with higher level parents. I think this is a bug. Can you please help me with a workaround ?
Thanks and regards.