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:
Anik Dhabal Babu authored and GitHub committed 2025-04-17 12:27:11 +00:00
1 parent 5c7f1aebb2
commit 603f106389
1 file changed
+1 -1
@@ -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,
});