From 028897f93bba6960b5f03f6acd76cee7535860ef Mon Sep 17 00:00:00 2001 From: hugocasa Date: Thu, 3 Dec 2026 17:28:26 +0100 Subject: [PATCH] fix: a stored read only holds admins too in the members-get line Co-Authored-By: Claude Opus 5.5 --- .../src/lib/components/settings/RoleMcpAccessEditor.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/settings/RoleMcpAccessEditor.svelte b/frontend/src/lib/components/settings/RoleMcpAccessEditor.svelte index 06d723e246..0f51b1e339 100644 --- a/frontend/src/lib/components/settings/RoleMcpAccessEditor.svelte +++ b/frontend/src/lib/components/settings/RoleMcpAccessEditor.svelte @@ -93,8 +93,10 @@ const gets = $derived.by(() => { if (effective === 'off') return 'Nothing: members of this role cannot connect an AI client.' if (canRun === false) { - return effective === 'runnables' - ? 'No tools: this role cannot run scripts and flows.' + if (effective === 'runnables') return 'No tools: this role cannot run scripts and flows.' + // Workspace admins holding the role run all the same, unless read only holds them. + return effective === 'read_only' + ? 'Explore and read. Nothing is run.' : 'Explore and read. Nothing is run, except by workspace admins holding this role.' } if (effective === 'runnables') return 'These scripts and flows, each as its own tool.'