From 0c368ce4661c91f77aa79f189c4be11de5d94d27 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 3 Mar 2011 14:40:32 -0600 Subject: Correct some permission decorators Signed-off-by: Dan McGee --- packages/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/views.py b/packages/views.py index 7c57d88a..2291c4f4 100644 --- a/packages/views.py +++ b/packages/views.py @@ -2,7 +2,7 @@ from django.contrib import messages from django.contrib.admin.widgets import AdminDateWidget from django.contrib.auth.models import User -from django.contrib.auth.decorators import login_required, permission_required +from django.contrib.auth.decorators import permission_required from django.conf import settings from django.core.mail import send_mail from django.db.models import Q @@ -403,7 +403,7 @@ def arch_differences(request): } return direct_to_template(request, 'packages/differences.html', context) -@login_required +@permission_required('main.change_package') def stale_relations(request): relations = PackageRelation.objects.select_related('user') pkgbases = Package.objects.all().values('pkgbase') -- cgit v1.2.3-54-g00ecf