From 1e48746edc1fb650648cca43f3e20f0cd1fb0710 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 5 Apr 2024 09:53:42 +0200 Subject: [PATCH] fix: prevent operators from loading secrets through toggle --- frontend/src/lib/components/VariableEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/VariableEditor.svelte b/frontend/src/lib/components/VariableEditor.svelte index caa49bb300..5845383448 100644 --- a/frontend/src/lib/components/VariableEditor.svelte +++ b/frontend/src/lib/components/VariableEditor.svelte @@ -155,7 +155,7 @@ edit && loadVariable(initialPath)} bind:checked={variable.is_secret} - disabled={$userStore?.operator} + disabled={edit && $userStore?.operator} options={{ right: 'Secret' }} /> {#if variable.is_secret}