From da50ac468b60a9d6b707a5ab46fe40f0d3eec286 Mon Sep 17 00:00:00 2001 From: Daniel S Date: Sun, 9 Aug 2026 22:36:33 +0200 Subject: [PATCH] fix(nav): restrict visual editor access to pages management overview --- src/components/admin/AdminSidebar.astro | 2 +- src/pages/admin/index.astro | 27 +++++++++---------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/src/components/admin/AdminSidebar.astro b/src/components/admin/AdminSidebar.astro index 3a02281..77ce5db 100644 --- a/src/components/admin/AdminSidebar.astro +++ b/src/components/admin/AdminSidebar.astro @@ -5,9 +5,9 @@ const { currentPath = '' } = Astro.props; const navItems = [ { href: '/admin', label: 'Allgemein & Konfig', icon: 'πŸŽ›οΈ' }, { href: '/admin/pages', label: 'Seiten-Verwaltung', icon: 'πŸ“„' }, - { href: '/admin/editor', label: 'Visueller Editor', icon: '🎨' }, { href: '/admin/settings', label: 'Stammdaten & SEO', icon: 'βš™οΈ' }, ]; + --- diff --git a/src/pages/admin/index.astro b/src/pages/admin/index.astro index b405454..e363268 100644 --- a/src/pages/admin/index.astro +++ b/src/pages/admin/index.astro @@ -36,31 +36,24 @@ const presets = Object.values(THEME_PRESETS); -