mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-09 00:02:30 +00:00
fix: prevent operators from loading secrets through toggle
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
<Toggle
|
||||
on:change={() => edit && loadVariable(initialPath)}
|
||||
bind:checked={variable.is_secret}
|
||||
disabled={$userStore?.operator}
|
||||
disabled={edit && $userStore?.operator}
|
||||
options={{ right: 'Secret' }}
|
||||
/>
|
||||
{#if variable.is_secret}
|
||||
|
||||
Reference in New Issue
Block a user