From 0bd1417f043b4fb907098c1d6f448cc982730b72 Mon Sep 17 00:00:00 2001 From: Joel Addison Date: Mon, 19 Aug 2024 22:57:28 +1000 Subject: [PATCH] Fix registration available tag Check that the user has a linked attendee before trying to check if they have completed registration. --- .../registrasion/registrasion/templatetags/registrasion_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/registrasion/registrasion/templatetags/registrasion_tags.py b/vendor/registrasion/registrasion/templatetags/registrasion_tags.py index 73af25c6..2c66ef79 100644 --- a/vendor/registrasion/registrasion/templatetags/registrasion_tags.py +++ b/vendor/registrasion/registrasion/templatetags/registrasion_tags.py @@ -29,7 +29,7 @@ def registration_available(context): # Staff can always see registration - not necessarily all parts. return True - if user.attendee.completed_registration: + if hasattr(user, "attendee") and user.attendee.completed_registration: # Always show to someone who has completed registration already. return True