From b9d441e6a3f90236ce779d64c2c5601932d09ac4 Mon Sep 17 00:00:00 2001 From: Lombiq Date: Thu, 29 Oct 2015 00:50:08 +0100 Subject: [PATCH] INavigationProvider-provided menus are now run through INavigationFilters, fixes #5377 --- src/Orchard.Web/Core/Navigation/Services/NavigationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Navigation/Services/NavigationManager.cs b/src/Orchard.Web/Core/Navigation/Services/NavigationManager.cs index a090a1bb2..258f5d0b2 100644 --- a/src/Orchard.Web/Core/Navigation/Services/NavigationManager.cs +++ b/src/Orchard.Web/Core/Navigation/Services/NavigationManager.cs @@ -46,7 +46,7 @@ namespace Orchard.Core.Navigation.Services { public IEnumerable BuildMenu(string menuName) { var sources = GetSources(menuName); var hasDebugShowAllMenuItems = _authorizationService.TryCheckAccess(Permission.Named("DebugShowAllMenuItems"), _orchardServices.WorkContext.CurrentUser, null); - return FinishMenu(Reduce(Merge(sources), menuName == "admin", hasDebugShowAllMenuItems).ToArray()); + return FinishMenu(Reduce(Filter(Merge(sources)), menuName == "admin", hasDebugShowAllMenuItems).ToArray()); } public IEnumerable BuildMenu(IContent menu) {