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'; export default async function AdherentsPage() { const user = await getCurrentUser(); if (!user) { redirect('/login'); } const hasAccess = await hasPageAccess(user.id, '/dashboard/adherents'); if (!hasAccess) { redirect('/dashboard/parametres'); } return (

Adhérents

Base de données des adhérents

); }