From c6792e8fe09d02faf5c546b395e984165844f9f7 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 9 Nov 2025 16:56:16 +0100 Subject: [PATCH] fix: hide navigation tabs completely for non-admin users --- src/App.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index de15bb5..f49eb4a 100644 --- a/src/App.js +++ b/src/App.js @@ -1477,10 +1477,13 @@ function App() { function NavigationTabs({ isAdmin }) { const location = useLocation(); - const tabs = [{ to: '/', label: 'Konfiguration' }]; - if (isAdmin) { - tabs.push({ to: '/admin', label: 'Admin' }); + if (!isAdmin) { + return null; } + const tabs = [ + { to: '/', label: 'Konfiguration' }, + { to: '/admin', label: 'Admin' } + ]; return (