HackYourFuture-CPH / web-dev-rooms

Final project for HYF class14
https://develop-web-dev-rooms.herokuapp.com
MIT License
0 stars 4 forks source link

Admin should be able to delete an event #301

Closed tpetrina closed 3 years ago

tpetrina commented 3 years ago
image

Display a modal when the user clicks the cancel button on the list of events. Check if that modal already exist and adapt it if necessary.

The DELETE endpoint should be changed from '/:userId/:eventId' to /:eventId and it should pass the userId from req. Add validation to the function to check if the user is an admin and return 403 if they aren't.

AnilMula commented 3 years ago

this issue addressed by PR https://github.com/HackYourFuture-CPH/web-dev-rooms/pull/304