paperwork: Fix typo in certification version autocomplete permission

This commit is contained in:
Adam Goldsmith 2023-04-10 18:06:08 -04:00
parent 1a8c4cc867
commit d6a1af19ce

View File

@ -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_certification_version"):
return CertificationVersion.objects.none()
qs = CertificationVersion.objects.alias(