fix: a stored read only holds admins too in the members-get line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-12-03 17:28:26 +01:00
co-authored by Claude Opus 5.5
parent 7a1cfefed0
commit 028897f93b
@@ -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.'