From 042ae6ac6d1d5f90b0a6bcd862f0be43e87be18b Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Tue, 2 Dec 2025 23:20:20 +0000 Subject: [PATCH] Add Geofences navigation link for all ADMIN users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed navigation access so that all users with ADMIN role can see and access the Geofences menu item, not just the 'admin' user. **Changes:** - Added "Geofences" to navigation menu - Set roles: ['ADMIN'] - accessible to all ADMIN users - Set superAdminOnly: false - not restricted to 'admin' username Now any user with ADMIN role can: - Access /admin/geofences (management) - Access /admin/geofences/events (event history) - See geofence widget on dashboard - View geofences on map 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/admin/layout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/admin/layout.tsx b/app/admin/layout.tsx index cfc3c63..ed664fe 100644 --- a/app/admin/layout.tsx +++ b/app/admin/layout.tsx @@ -19,6 +19,7 @@ export default function AdminLayout({ const allNavigation = [ { name: "Dashboard", href: "/admin", roles: ['ADMIN', 'VIEWER'], superAdminOnly: false }, { name: "Devices", href: "/admin/devices", roles: ['ADMIN', 'VIEWER'], superAdminOnly: false }, + { name: "Geofences", href: "/admin/geofences", roles: ['ADMIN'], superAdminOnly: false }, { name: "MQTT Provisioning", href: "/admin/mqtt", roles: ['ADMIN'], superAdminOnly: false }, { name: "Setup Guide", href: "/admin/setup", roles: ['ADMIN', 'VIEWER'], superAdminOnly: false }, { name: "Users", href: "/admin/users", roles: ['ADMIN'], superAdminOnly: false },