Commit 0dc8bb9b authored by David Haynes's avatar David Haynes 🙆
Browse files

Registered and approved users are unable to view signup page (Closes #18)

- except staff for an undetermined reason
parent 30a5bca8
...@@ -211,9 +211,17 @@ def signup(request): ...@@ -211,9 +211,17 @@ def signup(request):
yourself, or another person. yourself, or another person.
""" """
# Do not display signup page to registered or approved users (Staff can still see these pages)
if is_registered(request.user) and not request.user.is_staff: if is_registered(request.user) and not request.user.is_staff:
return render(request, 'signup.html', { return render(request, 'signup.html', {
'registered': True, 'registered': True,
'approved': False,
},
)
elif is_approved(request.user) and not request.user.is_staff:
return render(request, 'signup.html', {
'registered': True,
'approved': True,
}, },
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment