Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
18239156
Commit
18239156
authored
Dec 21, 2016
by
Luuk Scholten
Browse files
Merge branch 'superuser_only_crash' into 'master'
Make /crash superuser-only See merge request
!288
parents
f86ec239
65af37b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/views.py
View file @
18239156
...
...
@@ -73,4 +73,6 @@ def styleguide_file(request, filename):
@
staff_member_required
def
crash
(
request
):
if
not
request
.
user
.
is_superuser
:
return
HttpResponseForbidden
(
"This is not for you"
)
raise
Exception
(
"Test exception"
)
Write
Preview
Supports
Markdown
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