Fix logic for people trying to give feedback without reg master github/master
authorMagnus Hagander <magnus@hagander.net>
Thu, 23 Oct 2025 13:22:23 +0000 (15:22 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 23 Oct 2025 13:22:23 +0000 (15:22 +0200)
Previosly the code catered for "has a registration of a type that's free
but it's not confirmed", but these days the zero cost registrations
*also* get the payconfirmedat flag set, so we don't need to look beyond
that.

postgresqleu/confreg/views.py

index be88232f252ce3ca4fcafc5203270d90aed6b11e..03f7446d2a8408ff856c8b8523235b1896eecb8d 100644 (file)
@@ -1104,8 +1104,7 @@ def feedback(request, confname):
         return HttpResponse('You are not registered for this conference.')
 
     if not r.payconfirmedat:
-        if r.regtype.cost != 0:
-            return HttpResponse('You are not a confirmed attendee of this conference.')
+        return HttpResponse('You are not a confirmed attendee of this conference.')
 
     if r.canceledat:
         return HttpResponse("Your registration has been canceled.")