From 7fe457715865f7498c342210e09021e815c2aa34 Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Tue, 11 Apr 2023 10:21:37 -0400 Subject: [PATCH] Routes with Module ID and no Action can be displayed on any page regardless of whether a PageModule record exists (ie. Admin Dashboard) --- Oqtane.Client/UI/Pane.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Client/UI/Pane.razor b/Oqtane.Client/UI/Pane.razor index ccaaf0c3..4ef60405 100644 --- a/Oqtane.Client/UI/Pane.razor +++ b/Oqtane.Client/UI/Pane.razor @@ -107,7 +107,7 @@ else { if (PageState.ModuleId != -1) { - Module module = PageState.Modules.FirstOrDefault(item => item.PageId == PageState.Page.PageId && item.ModuleId == PageState.ModuleId); + Module module = PageState.Modules.FirstOrDefault(item => item.ModuleId == PageState.ModuleId); if (module != null && module.Pane.ToLower() == Name.ToLower()) { // check if user is authorized to view module