From 0e6e55ef651bcf821494d32ab98da009fd81ff3c Mon Sep 17 00:00:00 2001 From: Schalli Date: Fri, 2 Oct 2026 13:40:04 +0200 Subject: [PATCH] fix(quick-261002-icv): Freigaben-Matrix zeigt Bereichsnamen statt Kennungen Co-Authored-By: Claude Opus 5.5 (1M context) --- apps/web/src/app/(portal)/admin/modules/grants/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/(portal)/admin/modules/grants/page.tsx b/apps/web/src/app/(portal)/admin/modules/grants/page.tsx index ff9b02f..c8e1671 100644 --- a/apps/web/src/app/(portal)/admin/modules/grants/page.tsx +++ b/apps/web/src/app/(portal)/admin/modules/grants/page.tsx @@ -4,6 +4,7 @@ import { Fragment, useCallback, useEffect, useMemo, useState } from 'react'; import Link from 'next/link'; import { useTranslations } from 'next-intl'; import { useAuthStore } from '@/lib/stores/auth-store'; +import { useCategoryLabel } from '@/lib/use-category-label'; const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001'; @@ -47,6 +48,7 @@ export default function AdminModuleGrantsPage() { const t = useTranslations('adminModules.grants'); const tGrantLabel = useTranslations('admin.groups.grants'); const tCommon = useTranslations('common'); + const categoryLabel = useCategoryLabel(); const currentUser = useAuthStore((s) => s.user); const hasAccess = currentUser?.role === 'ADMIN' || currentUser?.role === 'SUPER_ADMIN'; @@ -291,7 +293,7 @@ export default function AdminModuleGrantsPage() { colSpan={filteredGroups.length + 1} className="bg-muted/50 px-4 py-2 text-xs font-medium text-muted-foreground" > - {category} + {categoryLabel(category)} {mods.map((mod) => (