hotfix dynamic issue (#3864)

pull/3879/head
Syed Ali Shahbaz 2022-08-17 03:37:44 +05:30 committed by GitHub
parent 3a54ca2c95
commit 46715a6cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,