From b522a1ba1c1edff7648c6c7d69fa2867a08b4100 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 3 Jul 2013 16:49:29 +0530 Subject: merged java --- testapp/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapp/exam/views.py') 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) -- cgit