From 89d0f40027a95760d32d069fd54dddaeef806b2d Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Fri, 15 Aug 2014 20:19:27 +0700 Subject: [PATCH] Fixes #348, wrong menu level shown when none of the menu's nodes are accessible to the user. Expected behavior is that no menu is shown in this case. --- .../MvcSiteMapProvider/Web/Html/MenuHelper.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Web/Html/MenuHelper.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Web/Html/MenuHelper.cs index 6094ffae..366bd478 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Web/Html/MenuHelper.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Web/Html/MenuHelper.cs @@ -1465,11 +1465,6 @@ public static ISiteMapNode GetNodeAtLevel(ISiteMapNode startingNode, int level, } } - if (startingNode != null && startingNode.SiteMap.RootNode != null && allowForwardSearch) - { - return startingNode.SiteMap.RootNode; - } - return null; }