Fix registration available tag
Check that the user has a linked attendee before trying to check if they have completed registration.
This commit is contained in:
parent
a43eaced80
commit
0bd1417f04
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def registration_available(context):
|
||||||
# Staff can always see registration - not necessarily all parts.
|
# Staff can always see registration - not necessarily all parts.
|
||||||
return True
|
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.
|
# Always show to someone who has completed registration already.
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue