Skip to content

Can add multiple gig bookings over limit by going back in browser #20

Description

@samflynn98

Version

v2

Severity

High

Suggested Priority

High

Observed Behaviour

When logged in, can click on a gig and enter a number of tickets. This takes you to the account page which shows the user's bookings. However, can then click the back arrow on the browser, which will take you back to the booking page and let you enter another booking for the same gig.

These then appear as duplicates in the account page and this can be used to subvert the max ticket number per gig.

Image

Expected Behaviour

When attempting this, it should show "You have already booked this gig" like it does when using the menu bar to navigate back to the same gig.

Reproduction Steps

  1. Follow the instructions in the README
  2. Navigate to the gigs page
  3. Enter a number of tickets under the maximum
  4. Click "book gig"
  5. Go back in the browser
  6. Repeat step 3 & 4
  7. Observe the duplicate bookings in the account page

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions