Protect our views ๐ซฃ
- Fork and clone this repository.
- Create a virtual environment.
- Install the packages using
pip install -r requirements/dev.lock
. - Adjust the permissions of the
BookingsList
andBookFlight
so that only logged in users can access these views. - Adjust the permissions of the
BookingDetails
,UpdateBooking
, andCancelBooking
so that only an owner of the booking or the staff can access the view. - Adjust the permissions of the
UpdateBooking
andCancelBooking
so that the booking cannot be canceled or modified unless it's more than 3 days before the schedule time of departure. - Test your modified APIs on
Postman
. - Push your code.