From f1276faabc8dd642045036363c01d1a96859ccfb Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Fri, 19 Jun 2026 21:06:47 -0400 Subject: [PATCH 1/2] feat(cms): add nav drawer to CmsLayout Add a MudDrawer with app-bar toggle linking Catalogue, Releases, Upload, SuperRegister, and the self-gating UserAdminMenu fragment so user-admin pages are reachable. --- .../Components/Layout/CmsLayout.razor | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/DeepDrftManager/Components/Layout/CmsLayout.razor b/DeepDrftManager/Components/Layout/CmsLayout.razor index 35d0af7..8f9ae09 100644 --- a/DeepDrftManager/Components/Layout/CmsLayout.razor +++ b/DeepDrftManager/Components/Layout/CmsLayout.razor @@ -1,5 +1,6 @@ @inherits LayoutComponentBase @using DeepDrftShared.Client.Common +@using AuthBlocksWeb.Components.Layout @@ -8,6 +9,10 @@ + Deep Drft — Admin @@ -18,6 +23,15 @@ Color="Color.Inherit" /> + + + Catalogue + Releases + Upload + + Provision User + + @Body @@ -25,6 +39,12 @@ +@code { + private bool _drawerOpen = true; + + private void ToggleDrawer() => _drawerOpen = !_drawerOpen; +} +
An unhandled error has occurred. Reload From d6dcd82a53af2732c91be0531e31e7d251e4d219 Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Fri, 19 Jun 2026 21:57:00 -0400 Subject: [PATCH 2/2] fix: gate SuperRegister nav link to UserAdmin role Provision User nav link was visible to all authenticated CMS users but its target page is UserAdmin-gated. Wraps the MudNavLink in HierarchicalRoleAuthorizeView matching the UserAdminMenu pattern. --- DeepDrftManager/Components/Layout/CmsLayout.razor | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DeepDrftManager/Components/Layout/CmsLayout.razor b/DeepDrftManager/Components/Layout/CmsLayout.razor index 8f9ae09..3378a97 100644 --- a/DeepDrftManager/Components/Layout/CmsLayout.razor +++ b/DeepDrftManager/Components/Layout/CmsLayout.razor @@ -29,7 +29,11 @@ Releases Upload - Provision User + + + Provision User + +