From 7010fa8b8af6aa3f3a258128fee7c7b7402c9837 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 8 Dec 2010 17:04:26 -0500 Subject: [PATCH] Made the dashboard index (repo list) require a login --- dashboard/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dashboard/views.py b/dashboard/views.py index eecc973..7a650cd 100755 --- a/dashboard/views.py +++ b/dashboard/views.py @@ -1,7 +1,9 @@ from django.shortcuts import render_to_response from django.template import RequestContext +from django.contrib.auth.decorators import permission_required from codereview.dashboard.models import Repository +@permission_required('dashboard.browse') def index(request): """ List available repositories """