diff --git a/app/students/[shortcode]/page.tsx b/app/students/[shortcode]/page.tsx index 323e65b4..9229a1c7 100644 --- a/app/students/[shortcode]/page.tsx +++ b/app/students/[shortcode]/page.tsx @@ -94,12 +94,20 @@ const StudentProfilePage = async ({ params }: { params: { shortcode: string } }) )} {studentProfile.cv && ( - - - - {studentProfile.user.name?.split(",").reverse()[0].trim()}'s CV - - + + session.user.role === "COMPANY" || session.user.id === studentProfile.userId + } + > + + + + {studentProfile.user.name?.split(",").reverse()[0].trim()}'s CV + + + )}