Repository navigation
ticket-promo - #731
Open
Securify001 wants to merge 2 commits into
Open
ticket-promo#731Securify001 wants to merge 2 commits into
Securify001 wants to merge 2 commits into
Conversation
👷 Deploy request for stellarticketsbackend pending review.Visit the deploys page to approve it
|
|
@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! 🚀 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-expiredrestricted toPLATFORM_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.tsFix: Added
@Roles('PLATFORM_ADMIN')and@UseGuards(RolesGuard)to the handler. Non-admin callers receive403 Forbidden.Closes #504
Closes #505
Closes #510
Closes #511