From 5bcf85e57d72fca70064ab2c49290b62cbfecb50 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 15 Jun 2020 13:33:16 -0400 Subject: [PATCH] Closes #4744: Hide IP addresses tab when viewing a container prefix --- docs/release-notes/version-2.8.md | 1 + netbox/templates/ipam/prefix.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-2.8.md b/docs/release-notes/version-2.8.md index d5cbd1261..f6a8dbcc3 100644 --- a/docs/release-notes/version-2.8.md +++ b/docs/release-notes/version-2.8.md @@ -6,6 +6,7 @@ * [#4698](https://github.com/netbox-community/netbox/issues/4698) - Improve display of template code for object in admin UI * [#4717](https://github.com/netbox-community/netbox/issues/4717) - Introduce `ALLOWED_URL_SCHEMES` configuration parameter to mitigate dangerous hyperlinks +* [#4744](https://github.com/netbox-community/netbox/issues/4744) - Hide "IP addresses" tab when viewing a container prefix * [#4755](https://github.com/netbox-community/netbox/issues/4755) - Enable creation of rack reservations directly from navigation menu * [#4761](https://github.com/netbox-community/netbox/issues/4761) - Enable tag assignment during bulk creation of IP addresses diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index 4620f6bf4..241cdd9a4 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -64,7 +64,7 @@ - {% if perms.ipam.view_ipaddress %} + {% if perms.ipam.view_ipaddress and prefix.status != 'container' %}