diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index 750e205e04..6808630ed1 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -1,7 +1,7 @@ {% load i18n %} {% load inventree_extras %} -{% if roles.part.change != True and editing_enabled %} +{% if not roles.part.change %}
{% trans "You do not have permission to edit the BOM." %}
@@ -23,7 +23,7 @@
- {% if editing_enabled %} + {% if roles.part.change %} @@ -35,17 +35,9 @@ {% endif %} - - - {% elif part.active %} - {% if roles.part.change %} - {% if part.is_bom_valid == False %}