summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index f3e8668..50f9ded 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -230,6 +230,9 @@ def results_user(request):
@email_verified
def add_question(request, question_id=None):
user = request.user
+ if not is_moderator(user):
+ raise Http404('You are not allowed to view this page !')
+
test_case_type = None
if question_id is not None: