Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Nov 13, 2023
1 parent 52eb7b7 commit cd9c80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gsr_booking/api_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def cancel_room(self, booking_id, user):
gsr_booking := GSRBooking.objects.filter(booking_id=booking_id)
.prefetch_related(Prefetch("reservation__gsrbooking_set"), Prefetch("gsr"))
.first()
):
) :
if gsr_booking.user != user and gsr_booking.reservation.creator != user:
raise APIError("Error: Unauthorized: This reservation was booked by someone else.")

Expand Down

0 comments on commit cd9c80e

Please sign in to comment.