From fe70769afcdf239577d59e330e32306d14107a48 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 8 Jun 2020 11:20:48 +0530 Subject: - Remove Copy Of in Module, Lesson and Quiz names when duplicating courses - Prevent student users from accessing Questions --- yaksh/views.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yaksh/views.py') diff --git a/yaksh/views.py b/yaksh/views.py index 3adb536..1544508 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -224,6 +224,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: -- cgit