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 """