summaryrefslogtreecommitdiff
path: root/testapp/exam/views.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2013-07-29 23:58:29 -0700
committerPrabhu Ramachandran2013-07-29 23:58:29 -0700
commit70b73660f9c10174e318d570a820ca0cc01f8d5f (patch)
tree26df2b155c4db789dabd53f309057ac0aaca5f04 /testapp/exam/views.py
parentee64cfe58c42540d0736cc32d3acd36ab7a6d31d (diff)
parentb522a1ba1c1edff7648c6c7d69fa2867a08b4100 (diff)
downloadonline_test-70b73660f9c10174e318d570a820ca0cc01f8d5f.tar.gz
online_test-70b73660f9c10174e318d570a820ca0cc01f8d5f.tar.bz2
online_test-70b73660f9c10174e318d570a820ca0cc01f8d5f.zip
Merge pull request #14 from prathamesh920/fresh_java
fresh 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)