From 50d727cbbbacdb4e6b7e8768fefe529a33ca5fa1 Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Wed, 8 Sep 2021 09:14:13 +0100 Subject: [PATCH] Temporarily disable checking video busy times (#603) --- pages/event-types/[type].tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/event-types/[type].tsx b/pages/event-types/[type].tsx index 8b88d7a440..4b1437ce19 100644 --- a/pages/event-types/[type].tsx +++ b/pages/event-types/[type].tsx @@ -1090,6 +1090,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => periodEndDate: true, periodCountCalendarDays: true, requiresConfirmation: true, + userId: true, }, }); @@ -1099,6 +1100,12 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => } as const; } + if (eventType.userId != session.user.id) { + return { + notFound: true, + } as const; + } + const credentials = await prisma.credential.findMany({ where: { userId: user.id,