Commits

Christopher Young  committed 13a7018

Fixing unreserve permissions

  • Participants
  • Parent commits 5e5f0a7

Comments (0)

Files changed (1)

File timeslots/models.py

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