Commits

Christopher Young committed 5e5f0a7

Fixing unreserve permissions

  • Participants
  • Parent commits f1458ac

Comments (0)

Files changed (1)

timeslots/models.py

             return (False, "This timeslot isn't reserved")
         if requester.is_superuser:
             return (True, '')
-        if requester != renter:
+        if requester.pk != renter.pk:
             return (False, "You cannot unreserve someone else's timeslot")
         if self.start_time_and_date < datetime.datetime.now():
             return (False, '')