summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 18e2d4d..f6e93ae 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -1415,7 +1415,7 @@ def link_image(request):
context['success'] = True
return render_to_response('tbc/link_image.html', context, context_instance=ci)
-@login_required( login_url= "/admin")
+@login_required(login_url="/login/")
def admin_tools(request):
ci = RequestContext(request)
curr_user = request.user
@@ -1423,5 +1423,5 @@ def admin_tools(request):
if not is_reviewer(curr_user):
raise Http404("You are not allowed to view this page")
else:
- context = {"user":curr_user}
- return render_to_response('tbc/admin-tools.html', context, context_instance=ci)
+ context = {"reviewer":curr_user}
+ return render_to_response('tbc/admin-tools.html', context, ci)