Added few configurations & mores

This commit is contained in:
2026-01-22 18:53:23 +01:00
parent 9051491fd0
commit d5d0d5aaf4
30 changed files with 3309 additions and 80 deletions

View File

@@ -1,5 +1,6 @@
import { redirect } from 'next/navigation';
import { getCurrentUser } from '@/lib/auth';
import { hasPageAccess } from '@/lib/permissions';
import DashboardLayout from '@/components/DashboardLayout';
import AdherentsTable from '@/components/AdherentsTable';
@@ -10,6 +11,11 @@ export default async function AdherentsPage() {
redirect('/login');
}
const hasAccess = await hasPageAccess(user.id, '/dashboard/adherents');
if (!hasAccess) {
redirect('/dashboard/parametres');
}
return (
<DashboardLayout user={user}>
<div className="p-6">