From 887e6c5026c6a4abd6f9c6f54cfe23b7ff9391c7 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 15 Aug 2026 17:05:44 +0200 Subject: [PATCH] feat(client): let a managed route require an admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hiding the nav entry is not access control: the path stays typeable, and a screen about how the install is run should not open for somebody who was invited to one trip. ProtectedRoute already knows how to refuse — the attachment point just was not asking it to. Optional, so a route that does not set it behaves exactly as before. It sits next to adminOnly on the nav entry rather than being derived from it, because the two answer different questions: who is offered the door, and who may walk through it. --- client/src/App.tsx | 2 +- client/src/managed/index.tsx | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 21fb7b6a9..2512ca9d3 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -479,7 +479,7 @@ export default function App() { {r.element}} + element={{r.element}} /> ))}