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.
This commit is contained in:
Raunak Burrows
2026-11-17 20:39:14 +01:00
committed by GitHub
parent ca0adbaff3
commit a2c04c2aa8
@@ -116,9 +116,9 @@
<TestingBadge />
{/if}
{/snippet}
{#if !userCanEditConfig && isDraftOnly}
{#if actingUser && !userCanEditConfig}
<Alert type="info" title="Admin only" collapsible size="xs">
Email triggers can only be edited by workspace admins
The local part and workspace prefix can only be changed by workspace admins
</Alert>
<div class="my-2"></div>
{/if}