Abo: Pilotliste mit '*' fuer Regelbetrieb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4ab154bfa2
commit
986ef9ebb9
1 file changed
+4
-2
@@ -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())
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user