prez BDE sould see invoice list

This commit is contained in:
Théo Le Moigne 2023-03-29 20:43:54 +02:00
parent 62cf8f9d84
commit 6bceb394c5
No known key found for this signature in database
GPG Key ID: D46D7E3364433208
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class InvoiceListView(LoginRequiredMixin, SingleTableView):
name="",
address="",
)
if not PermissionBackend.check_perm(self.request, "treasury.add_invoice", sample_invoice):
if not PermissionBackend.check_perm(self.request, "treasury.view_invoice", sample_invoice):
raise PermissionDenied(_("You are not able to see the treasury interface."))
return super().dispatch(request, *args, **kwargs)