1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 16:02:25 +00:00

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

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)