paperwork: Fix typo in certification version autocomplete permission
This commit is contained in:
parent
1a8c4cc867
commit
d6a1af19ce
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user