Restore ticket generation guard

This commit is contained in:
Stephanos A
2026-07-22 14:31:27 +03:00
parent 7ff98bfb81
commit c6f6616218

View File

@@ -34,10 +34,11 @@ export class TicketsController {
}
@Post('generate/:bookingId')
@SetMetadata('isPublic', true)
@PassengerStaff(PASSENGER_PERMS.tickets.generate)
@ApiBearerAuth('IAM-auth')
@ApiOperation({
summary: 'Generate ticket for booking (confirmation page)',
description: 'Creates a ticket when confirmation page is reached and permanently holds all associated seats with SeatBlock records. Requires payment to be SUCCEEDED and booking to be CONFIRMED.'
summary: 'Generate ticket for booking',
description: 'Creates a ticket for a confirmed booking with succeeded payment. Requires payment to be SUCCEEDED and booking to be CONFIRMED.'
})
generateTicket(@Param('bookingId') bookingId: string) {
return this.service.generate(bookingId);