Kundenansicht P5: Kundenart-Helfer und Felder in /api/auth/me

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-16 15:48:07 +00:00
1 parent c5b1333953
commit 8d3eb73db7
3 files changed
+76

No files matched your search

+3
View File
@@ -42,6 +42,7 @@ import {
import { logViewAction } from '../services/customerViewLog.js'
import { isStaffAccount } from '../services/staffLabels.js'
import { neueAnsichtFuerSession } from '../services/kundenansicht/schalter.js'
import { kundenartGespeichert, kundenartWirksam } from '../services/kundenart.js'
const router = Router()
@@ -56,6 +57,8 @@ function sanitizeCustomer(customer) {
location: customer.location || '',
customerStatus: customer.customerStatus || '',
portalAccessEnabled: Boolean(customer.portalAccessEnabled),
kundenart: kundenartGespeichert(customer),
kundenartWirksam: kundenartWirksam(customer),
}
}