Abo: Pilotliste mit '*' fuer Regelbetrieb

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-09-25 14:17:05 +00:00
1 parent 4ab154bfa2
commit 986ef9ebb9
1 file changed
+4 -2
+4 -2
View File
@@ -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())
}
// ---------------------------------------------------------------------------