diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-03 14:40:32 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-03 14:40:32 -0600 |
commit | 0c368ce4661c91f77aa79f189c4be11de5d94d27 (patch) | |
tree | 5dfb937d1231de1d1ea7134d5d411ded6313e77a /packages/views.py | |
parent | 3a85ead4475b8acfa236a5b1825b844d0431bbaf (diff) |
Correct some permission decorators
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r-- | packages/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 import forms 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') |