From 986ef9ebb9b7c41cf20feae627c43cced13c16ca Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 25 Sep 2026 14:17:05 +0000 Subject: [PATCH] Abo: Pilotliste mit '*' fuer Regelbetrieb Co-Authored-By: Claude Opus 5.5 --- server/routes/abo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/routes/abo.js b/server/routes/abo.js index 8e1991d..6ea189e 100644 --- a/server/routes/abo.js +++ b/server/routes/abo.js @@ -56,9 +56,11 @@ function publicSubscription(sub) { } } +// ABO_PILOT_EMAILS: Liste erlaubter Kunden-E-Mails; '*' = alle Kunden (Regelbetrieb) function isPilotAllowed(customer) { - if (!config.abo.pilotEmails.length) return true - return config.abo.pilotEmails.includes(String(customer?.email || '').toLowerCase()) + const list = config.abo.pilotEmails + if (!list.length || list.includes('*')) return true + return list.includes(String(customer?.email || '').toLowerCase()) } // ---------------------------------------------------------------------------