From b38b540616bdddff7df4c97d6820e3837d7154ec Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 30 Mar 2022 01:31:39 +0200 Subject: [PATCH] hide the button group if no action allowed --- InvenTree/company/templates/company/company_base.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index 4caf37272e..6bf4c929b3 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -23,6 +23,8 @@ {% endif %} +{% define perms.company.change_company or perms.company.delete_company as has_permission %} +{% if not company.is_deleted and has_permission %} @@ -38,6 +40,7 @@ {% endif %} +{% endif %} {% endblock actions %} {% block thumbnail %}