diff --git a/src/app/dashboard/participants/page.tsx b/src/app/dashboard/participants/page.tsx index 5dbab1d..b3a60cc 100644 --- a/src/app/dashboard/participants/page.tsx +++ b/src/app/dashboard/participants/page.tsx @@ -20,6 +20,7 @@ import { SelectTrigger, SelectValue } from "~/components/ui/select"; +import { usePermissions } from "~/hooks/usePermissions"; interface Study { id: number; @@ -38,6 +39,7 @@ export default function Participants() { const [selectedStudyId, setSelectedStudyId] = useState(null); const [participantName, setParticipantName] = useState(""); const [loading, setLoading] = useState(true); + const { hasPermission } = usePermissions(); useEffect(() => { fetchStudies(); @@ -195,14 +197,16 @@ export default function Participants() { Participant ID: {participant.id} - + {hasPermission('DELETE_PARTICIPANT') && ( + + )}