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
0dc8bb9b
Commit
0dc8bb9b
authored
Jan 02, 2016
by
David Haynes
🙆
Browse files
Registered and approved users are unable to view signup page (Closes
#18
)
- except staff for an undetermined reason
parent
30a5bca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
0dc8bb9b
...
...
@@ -211,9 +211,17 @@ def signup(request):
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
:
return
render
(
request
,
'signup.html'
,
{
'registered'
:
True
,
'approved'
:
False
,
},
)
elif
is_approved
(
request
.
user
)
and
not
request
.
user
.
is_staff
:
return
render
(
request
,
'signup.html'
,
{
'registered'
:
True
,
'approved'
:
True
,
},
)
...
...
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