fix: Admin/owner unable to confirm managed bookings (#20743)
* fix: Admin/owner can't confirm managed booking * Update confirm.handler.ts
This commit is contained in:
@@ -134,7 +134,7 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {
|
||||
await checkIfUserIsAuthorizedToConfirmBooking({
|
||||
eventTypeId: booking.eventTypeId,
|
||||
loggedInUserId: user.id,
|
||||
teamId: booking.eventType?.teamId,
|
||||
teamId: booking.eventType?.teamId || booking.eventType?.parent?.teamId,
|
||||
bookingUserId: booking.userId,
|
||||
userRole: user.role,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user