diff --git a/app/wireguard/views.py b/app/wireguard/views.py index c6f5799cec54aa4f3e6f5961c2450039070cc001..0bd0cbf0eb9a45a42bb0f8f9d4810e27c10277b8 100644 --- a/app/wireguard/views.py +++ b/app/wireguard/views.py @@ -14,7 +14,7 @@ class PublicKeyListView(PermissionListMixin, ListView): permission_required = ['view_wireguardpublickey'] -@permission_required('ssh.add_wireguardpublickey') +@permission_required('wireguard.add_wireguardpublickey') def publickey_create(request): if request.method == 'POST': form = forms.PublicKeyCreateForm(request.POST)