From f811aae64143b7cdbaff4db921f53b722ce5112a Mon Sep 17 00:00:00 2001 From: Claudio Date: Sun, 26 Apr 2026 09:59:24 +0200 Subject: [PATCH] fix(sidebar): show Settings entry to non-admin users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Companion to 4c7e981 — the SettingsPage was opened to non-admins but the LeftSidebar still gated the entry button on isAdmin, so non-admins had no way to reach it. The page itself is the source of truth for which tabs and controls are visible per role. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/layout/LeftSidebar.tsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/layout/LeftSidebar.tsx b/frontend/src/components/layout/LeftSidebar.tsx index b73be74..82c79ac 100644 --- a/frontend/src/components/layout/LeftSidebar.tsx +++ b/frontend/src/components/layout/LeftSidebar.tsx @@ -991,20 +991,20 @@ export function LeftSidebar() { - {/* Settings — admin only, navigates to the settings section */} - {isAdmin && ( - - )} + {/* Settings — visible to all signed-in users; the panel itself + hides admin-only tabs (Users) and admin-only controls inside + the AI tab. Library + Nextcloud config is per-user. */} +