diff --git a/src/pages/exam.tsx b/src/pages/exam.tsx index a2063284..a57dba24 100644 --- a/src/pages/exam.tsx +++ b/src/pages/exam.tsx @@ -27,8 +27,7 @@ export const getServerSideProps = withIronSessionSsr(async ({ req, res, query }) const loginDestination = Buffer.from(req.url || "/").toString("base64") if (!user) return redirect(`/login?destination=${loginDestination}`) - if (shouldRedirectHome(user) || checkAccess(user, ["corporate", "mastercorporate"])) - return redirect("/") + if (shouldRedirectHome(user)) return redirect("/") const { assignment: assignmentID, destination } = query as { assignment?: string, destination?: string } const destinationURL = !!destination ? Buffer.from(destination, 'base64').toString() : undefined