From b437dc2d793cd23a3e341a0f59e16c2fbf53478d Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 23 Oct 2025 15:22:23 +0200 Subject: [PATCH] Fix logic for people trying to give feedback without reg 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/postgresqleu/confreg/views.py b/postgresqleu/confreg/views.py index be88232f..03f7446d 100644 --- a/postgresqleu/confreg/views.py +++ b/postgresqleu/confreg/views.py @@ -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.") -- 2.39.5