mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-04 00:06:39 +00:00
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:
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.'
|
||||
|
||||
Reference in New Issue
Block a user