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:
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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user