fix(badges): hide template debug info bar from non-staff users
The name|layout|v3 info row was always visible. Gate it on trusted_access && edit_mode — attendees and volunteers should not see internal template metadata above their badge. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -561,7 +561,9 @@ const code_to_icon: {
|
|||||||
/* *** END *** Legacy ticket/option state */
|
/* *** END *** Legacy ticket/option state */
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Template debug info: screen-only. Shows layout context and v3 marker. -->
|
<!-- Template debug info: screen-only, trusted staff + edit mode only.
|
||||||
|
Intentionally hidden from attendees and non-staff — internal template metadata. -->
|
||||||
|
{#if $ae_loc.trusted_access && $ae_loc.edit_mode}
|
||||||
<div
|
<div
|
||||||
class="mb-1 flex h-6 items-center justify-center gap-2 font-mono text-xs text-gray-400 print:hidden">
|
class="mb-1 flex h-6 items-center justify-center gap-2 font-mono text-xs text-gray-400 print:hidden">
|
||||||
<span title="Badge template name"
|
<span title="Badge template name"
|
||||||
@@ -596,6 +598,7 @@ const code_to_icon: {
|
|||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<section
|
<section
|
||||||
id="event_badge_{$lq__event_badge_obj?.event_badge_id}"
|
id="event_badge_{$lq__event_badge_obj?.event_badge_id}"
|
||||||
|
|||||||
Reference in New Issue
Block a user