From a2c04c2aa83dbc4d0c3343f56776fd8c10264e30 Mon Sep 17 00:00:00 2001 From: Raunak Burrows Date: Tue, 17 Nov 2026 19:39:14 +0000 Subject: [PATCH] fix: explain why a non-admin cannot edit an email trigger's address (#12503) The "Admin only" note in the email trigger editor was gated on `!userCanEditConfig && isDraftOnly`, which can never hold since a draft always grants edit rights. Show it whenever the local part is locked, once the acting user is known, and name the fields it locks. --- .../triggers/email/EmailTriggerEditorConfigSection.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/triggers/email/EmailTriggerEditorConfigSection.svelte b/frontend/src/lib/components/triggers/email/EmailTriggerEditorConfigSection.svelte index 8bea1b8534..2f079ce2be 100644 --- a/frontend/src/lib/components/triggers/email/EmailTriggerEditorConfigSection.svelte +++ b/frontend/src/lib/components/triggers/email/EmailTriggerEditorConfigSection.svelte @@ -116,9 +116,9 @@ {/if} {/snippet} - {#if !userCanEditConfig && isDraftOnly} + {#if actingUser && !userCanEditConfig} - Email triggers can only be edited by workspace admins + The local part and workspace prefix can only be changed by workspace admins
{/if}