diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index d9764d6e25..915433b055 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -35,7 +35,7 @@ src="{% static 'img/blank_image.png' %}"

{{ build.quantity }} x {{ build.part.full_name }} - {% if user.is_staff %} + {% if user.is_staff and perms.build.change_build %} {% endif %}

diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index edcc817ab3..73ebecf979 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -23,7 +23,7 @@ InvenTree | {% trans "Company" %} - {{ company.name }}

{{ company.name }} - {% if user.is_staff %} + {% if user.is_staff and perms.company.change_company %} {% endif %}

diff --git a/InvenTree/order/templates/order/order_base.html b/InvenTree/order/templates/order/order_base.html index e047c5607f..036021b12d 100644 --- a/InvenTree/order/templates/order/order_base.html +++ b/InvenTree/order/templates/order/order_base.html @@ -22,7 +22,12 @@ src="{% static 'img/blank_image.png' %}" {% block page_data %}

{% trans "Purchase Order" %} {% purchase_order_status_label order.status large=True %}


-

{{ order }}

+

+ {{ order }} + {% if user.is_staff and perms.order.change_purchaseorder %} + + {% endif %} +

{{ order.description }}

diff --git a/InvenTree/order/templates/order/sales_order_base.html b/InvenTree/order/templates/order/sales_order_base.html index 6028157a22..70505ddccc 100644 --- a/InvenTree/order/templates/order/sales_order_base.html +++ b/InvenTree/order/templates/order/sales_order_base.html @@ -32,7 +32,12 @@ src="{% static 'img/blank_image.png' %}"

{% trans "Sales Order" %} {% sales_order_status_label order.status large=True %}


-

{{ order }}

+

+ {{ order }} + {% if user.is_staff and perms.order.change_salesorder %} + + {% endif %} +

{{ order.description }}

diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 58332b1a0c..528fdc135d 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -9,7 +9,7 @@ {% if category %}

{{ category.name }} - {% if user.is_staff %} + {% if user.is_staff and perms.part.change_partcategory %} {% endif %}

diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index e5dcd9e24e..1de4976740 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -28,7 +28,7 @@

{{ part.full_name }} - {% if user.is_staff %} + {% if user.is_staff and perms.part.change_part %} {% endif %} {% if not part.active %} diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index c6de4c058f..b3fb9af743 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -65,7 +65,7 @@ InvenTree | {% trans "Stock Item" %} - {{ item }} {% else %} {{ item.part.full_name }} × {% decimal item.quantity %} {% endif %} -{% if user.is_staff %} +{% if user.is_staff and perms.stock.change_stockitem %} {% endif %}

diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 802175ff53..2f319f4925 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -8,7 +8,7 @@ {% if location %}

{{ location.name }} - {% if user.is_staff %} + {% if user.is_staff and perms.stock.change_stocklocation %} {% endif %}