diff --git a/apps/treasury/views.py b/apps/treasury/views.py index aee6ea04..8543d289 100644 --- a/apps/treasury/views.py +++ b/apps/treasury/views.py @@ -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)