From a4f0be51e1843f090b15db4b5e4b63e0aa52ffe7 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 10 Apr 2023 18:06:08 -0400 Subject: [PATCH] paperwork: Fix typo in certification version autocomplete permission --- paperwork/autocomplete_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperwork/autocomplete_views.py b/paperwork/autocomplete_views.py index b9bdc73..f35d15b 100644 --- a/paperwork/autocomplete_views.py +++ b/paperwork/autocomplete_views.py @@ -7,7 +7,7 @@ from .models import CertificationVersion class CertificationVersionAutocomplete(autocomplete.Select2QuerySetView): def get_queryset(self): - if not self.request.user.has_perm("membershipworks.view_certification_version"): + if not self.request.user.has_perm("paperwork.view_certificationversion"): return CertificationVersion.objects.none() qs = CertificationVersion.objects.alias(