Skip to content
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

Prevent users from volunteering to an past events #121

Open
ahnwarez opened this issue Jul 13, 2022 · 0 comments
Open

Prevent users from volunteering to an past events #121

ahnwarez opened this issue Jul 13, 2022 · 0 comments

Comments

@ahnwarez
Copy link
Contributor

This is description should be refined

Users should not be able to Volunteer to past events.

In the Backened:

  • The POST / route in server/routes/volunteers.js should check for the event date, if it's greater than today then add the volunteer, else repond with a status code 500 and a message to reject the request with a message " Sorry, but you cannot volunteer to an expired event ".

In the Front-end:

  • Past events are already rendered but they get displayed at the bottom, disable the volunteer button and use a different background color, maybe use a dull color such as grey to visually indicate that the event is inactive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant