From bdc4189812cfa994107f4943df6ccb65afb19bf9 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 13 Aug 2020 10:53:34 -0400 Subject: [PATCH] Fixes #4995: Fix missing buttons to add console/power ports under device view --- docs/release-notes/version-2.9.md | 1 + netbox/templates/dcim/device.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/version-2.9.md b/docs/release-notes/version-2.9.md index 02808945f..915d9e038 100644 --- a/docs/release-notes/version-2.9.md +++ b/docs/release-notes/version-2.9.md @@ -29,6 +29,7 @@ * [#4951](https://github.com/netbox-community/netbox/issues/4951) - Redirect to device inventory view after creating a new inventory item * [#4952](https://github.com/netbox-community/netbox/issues/4952) - Default to VM tab when creating/editing an IP address for a VM * [#4968](https://github.com/netbox-community/netbox/issues/4968) - Fix exception when activating user keys in admin UI +* [#4995](https://github.com/netbox-community/netbox/issues/4995) - Fix missing buttons to add console/power ports under device view ### Other Changes diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 864dddd0c..e97893c30 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -724,7 +724,7 @@ Delete {% endif %} - {% if consoleports and perms.dcim.add_consoleport %} + {% if perms.dcim.add_consoleport %}
Add console port @@ -834,7 +834,7 @@ Delete {% endif %} - {% if powerports and perms.dcim.add_powerport %} + {% if perms.dcim.add_powerport %}