Commit cb4a4129 authored by Zosman's avatar Zosman
Browse files

Changed Unblock Style, Changed the only variable that get changed when user is...

Changed Unblock Style, Changed the only variable that get changed when user is blocked to user.blocked
parent 1e3d22ef
Pipeline #497 passed with stage
in 7 minutes and 24 seconds
......@@ -119,7 +119,7 @@ SRCT Go • Administration Panel
<!-- <input type="submit" name="_approve" value="Approve" class="btn btn-primary btn-sm"> -->
<!-- <input type="submit" name="_deny" value="Deny" class="btn btn-danger btn-sm"> -->
<input type="submit" name="_unblock" value="Un-Block" class="btn btn-default btn-sm">
<input type="submit" name="_unblock" value="Un-Block" class="btn btn-default btn-sm btn-Unblock">
......
......@@ -162,7 +162,9 @@ def signup(request):
This view presents the user with a registration form. You can register yourself.
"""
# Do not display signup page to registered or approved users
if request.user.registereduser.approved:
if request.user.registereduser.blocked:
return redirect('banned.html')
elif request.user.registereduser.approved:
return redirect('/')
elif request.user.registereduser.registered:
return redirect('registered')
......
......@@ -37,3 +37,6 @@ body {
.btn-blockUsr {
font-weight: 600;
}
.btn-Unblock {
font-weight: 600;
}
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