summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorCruiseDevice2019-02-18 15:51:52 +0530
committerCruiseDevice2019-02-18 16:45:17 +0530
commitcc710ca137bb5866c6771ba60b94a9fcce9054c5 (patch)
tree5276116033d0416c15eea2be3506c968311e65bd /yaksh/views.py
parent3e5c98c6432f0d745bea44bf5e5d870e352d164a (diff)
downloadonline_test-cc710ca137bb5866c6771ba60b94a9fcce9054c5.tar.gz
online_test-cc710ca137bb5866c6771ba60b94a9fcce9054c5.tar.bz2
online_test-cc710ca137bb5866c6771ba60b94a9fcce9054c5.zip
Remove the duplicate condition to check if user is quiz creator in preview_questionpaper view
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 6c7a12e..1ea7a22 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2825,8 +2825,6 @@ def preview_questionpaper(request, questionpaper_id):
if not is_moderator(user):
raise Http404('You are not allowed to view this page!')
paper = QuestionPaper.objects.get(id=questionpaper_id)
- if not paper.quiz.creator == user:
- raise Http404('This questionpaper does not belong to you')
context = {
'questions': paper._get_questions_for_answerpaper(),
'paper': paper,