From f2219b487ba627fc219cfd73952ed916af657146 Mon Sep 17 00:00:00 2001 From: CCS Admin Date: Thu, 26 Feb 2026 16:09:43 +0000 Subject: [PATCH] feat: hide personal data columns for dak_mitarbeiter in case list Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/CasesPage.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/CasesPage.tsx b/frontend/src/pages/CasesPage.tsx index fe107cf..493ec44 100644 --- a/frontend/src/pages/CasesPage.tsx +++ b/frontend/src/pages/CasesPage.tsx @@ -52,6 +52,7 @@ interface CasesPageProps { } export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) { + const { isAdmin } = useAuth() const currentYear = new Date().getFullYear() const [search, setSearch] = useState('') const [debouncedSearch, setDebouncedSearch] = useState('') @@ -140,7 +141,7 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) {
handleSearchChange(e.target.value)} className="pl-9" @@ -194,8 +195,8 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) { Fall-ID Datum - Nachname - Vorname + {isAdmin && Nachname} + {isAdmin && Vorname} KVNR Fallgruppe ICD @@ -214,8 +215,8 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) { {c.fall_id || '-'} {formatDate(c.datum)} - {c.nachname} - {c.vorname || '-'} + {isAdmin && {c.nachname}} + {isAdmin && {c.vorname || '-'}} {c.kvnr || '-'}