diff --git a/app/owlca/views.py b/app/owlca/views.py index 4eec3dde221da10768c420bd2f0f45b285dbee9a..a84ece90fa11f025f03fc2430448c3417be454c1 100644 --- a/app/owlca/views.py +++ b/app/owlca/views.py @@ -101,7 +101,7 @@ def cert_pickup_download(request, pickup_code, cert_pk): response['Content-Disposition'] = 'inline; filename=cert.pem' return response -@permission_required('owlca.add_certificationauthority') +@permission_required('add_certificationauthority') def ca_create(request): if request.method == 'POST': form = forms.CaCreateForm(request.POST) @@ -160,7 +160,8 @@ def ca_create(request): 'owlca/certificationauthority_create.html', {'form': form}) -@permission_required('owlca.change_certificationauthority') +@permission_required('change_certificationauthority', + (models.CertificationAuthority, "pk", "pk")) def ca_edit(request, pk): ca = get_object_or_404(models.CertificationAuthority, pk=pk) if request.method == 'POST':