diff --git a/frontend/src/views/DashboardView.vue b/frontend/src/views/DashboardView.vue index fae13de..931bbba 100644 --- a/frontend/src/views/DashboardView.vue +++ b/frontend/src/views/DashboardView.vue @@ -27,13 +27,16 @@ async function count(resource: string): Promise { onMounted(async () => { const result: Stat[] = [] + // Plattform-Ebene: nur Reseller (Firmen/Mitarbeiter via „Einloggen als") if (auth.isPlatformAdmin) { result.push({ label: 'Reseller', value: await count('resellers'), to: '/app/resellers', icon: ICON.reseller, tone: 'orange' }) } - if (auth.isResellerAdmin || auth.isPlatformAdmin) { + if (auth.isResellerAdmin) { result.push({ label: 'Firmen', value: await count('companies'), to: '/app/companies', icon: ICON.company, tone: 'blue' }) } - result.push({ label: 'Mitarbeiter', value: await count('employees'), to: '/app/employees', icon: ICON.people, tone: 'orange' }) + if (auth.isResellerAdmin || auth.isCompanyAdmin) { + result.push({ label: 'Mitarbeiter', value: await count('employees'), to: '/app/employees', icon: ICON.people, tone: 'orange' }) + } if (auth.isCompanyAdmin || auth.isResellerAdmin) { result.push({ label: 'Standorte', value: await count('locations'), to: '/app/locations', icon: ICON.pin, tone: 'green' }) result.push({ label: 'Domains', value: await count('domains'), to: '/app/domains', icon: ICON.globe, tone: 'gray' })