Skip to content

Scheduling infrastructure for absolutely everyone.

hotfix dynamic issue (#3864)

Syed Ali Shahbaz46715a6cd413
diff --git a/apps/web/pages/api/book/event.ts b/apps/web/pages/api/book/event.ts
index 63e5a5428ff..627b579c509 100644
--- a/apps/web/pages/api/book/event.ts
+++ b/apps/web/pages/api/book/event.ts
@@ -291,7 +291,7 @@ async function handler(req: NextApiRequest) {
})
: eventType.users;
const isDynamicAllowed = !users.some((user) => !user.allowDynamicBooking);
- if (!isDynamicAllowed) {
+ if (!isDynamicAllowed && !eventTypeId) {
throw new HttpError({
message: "Some of the users in this group do not allow dynamic booking",
statusCode: 400,