diff --git a/src/app/(dashboard)/studies/[id]/forms/page.tsx b/src/app/(dashboard)/studies/[id]/forms/page.tsx index bf52111..2db79a6 100644 --- a/src/app/(dashboard)/studies/[id]/forms/page.tsx +++ b/src/app/(dashboard)/studies/[id]/forms/page.tsx @@ -254,6 +254,9 @@ export default function StudyFormsPage({ params }: StudyFormsPageProps) { if (!study) return
Loading...
; + const userRole = (study as any)?.userRole; + const canManage = userRole === "owner" || userRole === "researcher"; + return ( - - {activeConsentForm && ( + canManage ? ( +
- )} -
+ {activeConsentForm && ( + + )} + + ) : null } > {activeConsentForm ? (