Commit 4573d745 authored by Zosman's avatar Zosman
Browse files

Fixes an issue with the /signup page for blocked users erroring, now returns a...

Fixes an issue with the /signup page for blocked users erroring, now returns a render that renders banned.html
parent cb4a4129
Pipeline #507 passed with stage
in 7 minutes and 23 seconds
......@@ -163,7 +163,7 @@ def signup(request):
"""
# Do not display signup page to registered or approved users
if request.user.registereduser.blocked:
return redirect('banned.html')
return render(request, 'banned.html')
elif request.user.registereduser.approved:
return redirect('/')
elif request.user.registereduser.registered:
......
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