Commit 18239156 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'superuser_only_crash' into 'master'

Make /crash superuser-only

See merge request !288
parents f86ec239 65af37b3
......@@ -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")
Supports Markdown
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