diff --git a/InvenTree/company/templates/company/index.html b/InvenTree/company/templates/company/index.html
index c8efbe804b..f110950c0b 100644
--- a/InvenTree/company/templates/company/index.html
+++ b/InvenTree/company/templates/company/index.html
@@ -12,7 +12,7 @@ InvenTree | {% trans "Supplier List" %}
{{ title }}
-{% if title == 'Manufacturers' and roles.purchase_order.add or title == 'Suppliers' and roles.purchase_order.add or title == 'Customers' and roles.sales_order.add %}
+{% if pagetype == 'manufacturers' and roles.purchase_order.add or pagetype == 'suppliers' and roles.purchase_order.add or pagetype == 'customers' and roles.sales_order.add %}