Am I missing a configuration option? I have a menu which has several levels of menus. With "Security Trimming" enabled, root level objects get trimmed with no issues. Parents which have their children objects "trimmed", still show up. Example:
@(Html.Kendo().Menu() .Name("Menu") .SecurityTrimming(true) .Items(items => { items.Add().Text("Home").Action("Index", "Home"); items.Add().Text("Owners").Action("Index", "Owners"); items.Add().Text("Interred").Action("Index", "Interred"); items.Add().Text("Maintenance").Items(itm => { itm.Add().Text(@"Sections/Lots/Spaces").Action("Index", "MaintainSpaces"); itm.Add().Text("Search Tags").Action("Index", "MaintainSearchTags"); itm.Add().Text("Undertakers").Action("Index", "MaintainUndertakers"); itm.Add().Text("Reclaim Spaces").Action("Index", "MaintainReclaimSpaces"); itm.Add().Text("Research Tool").Action("Index", "MaintainResearchTool"); itm.Add().Text("Headstones").Action("Index", "MaintainHeadstones"); }); items.Add().Text("Reports").Items(itm => { itm.Add().Text("Available Spaces").Action("Index", "ReportsPage"); }); }) )
As you can see the "Maintenance" and "Reports" menu items are still visible. An example situation would be :
A unauthorized user sees the "Home" button, and everything else should be trimmed. While the actual actions are getting trimmed, the "Maintenance" and "Reports" menu items (with nothing in them) are still there.
Am I missing a configuration option to also remove parents?