summaryrefslogtreecommitdiff
path: root/testapp/exam/views.py
diff options
context:
space:
mode:
authorprathamesh2013-07-03 16:49:29 +0530
committerprathamesh2013-07-03 16:49:29 +0530
commitb522a1ba1c1edff7648c6c7d69fa2867a08b4100 (patch)
tree26df2b155c4db789dabd53f309057ac0aaca5f04 /testapp/exam/views.py
parent781842c523ccf11b85e0be06e884b2cd585f3cb9 (diff)
downloadonline_test-b522a1ba1c1edff7648c6c7d69fa2867a08b4100.tar.gz
online_test-b522a1ba1c1edff7648c6c7d69fa2867a08b4100.tar.bz2
online_test-b522a1ba1c1edff7648c6c7d69fa2867a08b4100.zip
merged java
Diffstat (limited to 'testapp/exam/views.py')
-rw-r--r--testapp/exam/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py
index 4c47004..dd11346 100644
--- a/testapp/exam/views.py
+++ b/testapp/exam/views.py
@@ -963,7 +963,7 @@ def user_data(request, username):
"""Render user data."""
current_user = request.user
- if not current_user.is_authenticated() or not is_moderator(user):
+ if not current_user.is_authenticated() or not is_moderator(current_user):
raise Http404('You are not allowed to view this page!')
data = get_user_data(username)