← back to Wallco Ai
fix: hide AI-provenance legal-disclaimer block on /design/:id from non-admins — was leaking compliance language onto public design pages where the design itself sells; admins still see for QA
6f11ac9aaa28c6715415e0e497ba8ee2ffc17aca · 2026-05-20 10:07:22 -0700 · Steve Abrams
Files touched
Diff
commit 6f11ac9aaa28c6715415e0e497ba8ee2ffc17aca
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 20 10:07:22 2026 -0700
fix: hide AI-provenance legal-disclaimer block on /design/:id from non-admins — was leaking compliance language onto public design pages where the design itself sells; admins still see for QA
---
server.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 0e37d31..6f74f74 100644
--- a/server.js
+++ b/server.js
@@ -9149,11 +9149,16 @@ ${htmlHeader('/designs')}
})();
</script>
- <!-- Provenance note -->
+ ${_isAdmin ? `
+ <!-- Provenance / AI-disclosure note — admin-only.
+ A public-facing legal disclaimer on every design tile invites scrutiny
+ where the design itself is the strongest argument; admins still need
+ to see provenance for QA, but customers see a clean design page. -->
<div class="provenance-note">
<strong>AI-original provenance:</strong> This pattern was generated by <em>wallco.ai</em>.
It does not reproduce any existing copyrighted artwork. Every seed is unique — this exact pattern exists only here.
</div>
+ ` : ''}
${prev || next ? `<div class="detail-nav">
${prev ? `<a href="/design/${prev.id}" class="detail-nav-link prev">← ${prev.title}</a>` : '<span></span>'}
← 33bc0da Pollock-splatter (12) + Sherman-circus (20) collections publ
·
back to Wallco Ai
·
fix: hide AI-Original badge from /design/:id public view — k c9ec53b →