fix: prevent operators from loading secrets through toggle

This commit is contained in:
Ruben Fiszel
2024-04-05 09:53:42 +02:00
parent 421b1aea6f
commit 1e48746edc
@@ -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}