Skip to content

Bug/ prevent booking for past competitions and limit booking page access to future events #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LuuNa-JD
Copy link

This PR adds a validation that prevents users from booking places in competitions that have already occurred. If a competition is in the past, an error message is displayed on the main page instead of the booking page. The booking page (booking.html) is only shown for upcoming competitions, ensuring that bookings can only be made for valid events.

Linked Issue : #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant