{% trans "Bills" %}
+ {% if perms.django_ledger.add_billmodel %}
{% trans 'New Bill' %}
+ {% endif %}
@@ -78,12 +80,14 @@
{{bill.vendor.vendor_name}}
+ {% if perms.django_ledger.view_billmodel %}
+ {% endif %}
|
{% empty %}
diff --git a/templates/vendors/vendors_list.html b/templates/vendors/vendors_list.html
index 10fe402c..a3408cf9 100644
--- a/templates/vendors/vendors_list.html
+++ b/templates/vendors/vendors_list.html
@@ -11,8 +11,11 @@
{{ _("Vendors") |capfirst }}
- {{ _("Add Vendor") }}
+ {% if perms.django_ledger.add_vendormodel %}
+
+ {{ _("Add Vendor") }}
+
+ {% endif %}
{% include "partials/search_box.html" %}
{% if page_obj.object_list %}
@@ -121,14 +124,21 @@