Skip to content

ticket-promo - #731

Open
Securify001 wants to merge 2 commits into
StellarTickets:mainfrom
Securify001:ticket-promo
Open

Securify001 wants to merge 2 commits into
StellarTickets:mainfrom
Securify001:ticket-promo

Conversation

@Securify001

Copy link
Copy Markdown

Fix 4 Bugs in Ticket Purchase and Resale Flows

Resolves #504, #505, #510, #511

Overview

Four issues in the tickets controller and service: an open admin endpoint, promo codes silently misfiring on-chain, missing on-chain ownership verification after a resale purchase, and no active-listing guard before submitting a resale buy.


Changes

POST /tickets/resale/cancel-expired restricted to PLATFORM_ADMIN ✅

Problem: The route was guarded only by JwtAuthGuard, meaning any authenticated attendee could trigger a global resale expiry sweep on demand.

File: src/tickets/tickets.controller.ts

Fix: Added @Roles('PLATFORM_ADMIN') and @UseGuards(RolesGuard) to the handler. Non-admin callers receive 403 Forbidden.

@Post('resale/cancel-expired')
@Roles('PLATFORM_ADMIN')
@UseGuards(RolesGuard)
cancelExpiredListings() {
  return this.ticketsService.cancelExpiredListings();
}

Closes #504
Closes #505
Closes #510
Closes #511

@netlify

netlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

👷 Deploy request for stellarticketsbackend pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit fedc6e0

@drips-wave

drips-wave Bot commented Nov 25, 2026

Copy link
Copy Markdown

@Securify001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant