mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 15:04:14 +00:00
debug: add temporary logging to userHasAccessToAllTenants
This commit is contained in:
parent
47c6500679
commit
35bab1935a
1 changed files with 12 additions and 1 deletions
|
|
@ -409,7 +409,18 @@ export default buildConfig({
|
|||
} as Record<string, { customTenantField?: boolean }>),
|
||||
},
|
||||
// Super Admins haben Zugriff auf alle Tenants
|
||||
userHasAccessToAllTenants: (user) => Boolean(user?.isSuperAdmin),
|
||||
userHasAccessToAllTenants: (user) => {
|
||||
const result = Boolean(user?.isSuperAdmin)
|
||||
console.log('[DEBUG:MultiTenant] userHasAccessToAllTenants:', {
|
||||
userId: user?.id,
|
||||
email: user?.email,
|
||||
isSuperAdmin: user?.isSuperAdmin,
|
||||
result,
|
||||
tenants: user?.tenants,
|
||||
userKeys: user ? Object.keys(user) : 'no user',
|
||||
})
|
||||
return result
|
||||
},
|
||||
debug: true,
|
||||
// Deutsche Übersetzungen für den Tenant-Selector
|
||||
i18n: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue