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:
1 parent
c5b1333953
commit
8d3eb73db7
3 files changed
+76
No files matched your search
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user