Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
d31baa9f
Commit
d31baa9f
authored
Nov 15, 2016
by
Zosman
Browse files
i dont remember.
parent
9c0abf24
Pipeline
#454
passed with stage
in 7 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/templates/blocked.html
View file @
d31baa9f
...
...
@@ -30,7 +30,7 @@ SRCT Go • Account Blocked
{% endblock %}
<br
/>
<p>
If you belive this is
i
n error please contact Go Admins
.
If you beli
e
ve this is
a
n error
,
please contact
the
<a
href=
"mailto:srct@gmu.edu"
>
Go Admins
</a>
<br
/>
<br/>
Thank you, and have a nice day!
...
...
go/go/views.py
View file @
d31baa9f
...
...
@@ -33,13 +33,13 @@ def index(request):
# If the user is blocked, redirect them to the blocked page.
# If the user is not authenticated, show them a public landing page.
if
not
request
.
user
.
is_authenticated
():
return
render
(
request
,
'public_landing.html'
)
return
render
(
request
,
'public_landing.html'
)
# If the user isn't approved, don't give them any leeway.
elif
not
request
.
user
.
registereduser
.
approved
:
if
request
.
user
.
registereduser
.
blocked
:
return
render
(
request
,
'blocked.html'
)
else
:
return
render
(
request
,
'not_registered.html'
)
return
render
(
request
,
'not_registered.html'
)
url_form
=
URLForm
(
host
=
request
.
META
.
get
(
'HTTP_HOST'
))
# unbound form
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment