Volunteers need to have a ticket before they can apply to volunteer.

This commit is contained in:
Christopher Neugebauer 2016-12-10 16:39:30 +11:00
parent ae9f1e0b67
commit b783901e98

View file

@ -350,8 +350,8 @@ def session_detail(request, session_id):
runner_denied = True
if request.method == "POST" and request.user.is_authenticated():
if not hasattr(request.user, "profile") or not request.user.profile.is_complete:
response = redirect("profile_edit")
if not hasattr(request.user, "attendee") or not request.user.attendee.completed_registration:
response = redirect("guided_registration")
response["Location"] += "?next=%s" % request.path
return response