From 937e9080a1df3dcb4eecf0601c57d20cfa902b90 Mon Sep 17 00:00:00 2001 From: Peter Eckel Date: Sun, 18 Sep 2022 17:30:18 +0200 Subject: [PATCH] Define permissions required to see navigation menu items --- netbox_dns/navigation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netbox_dns/navigation.py b/netbox_dns/navigation.py index b1b97bf..f8c7d94 100644 --- a/netbox_dns/navigation.py +++ b/netbox_dns/navigation.py @@ -5,6 +5,7 @@ PluginMenuItem( link="plugins:netbox_dns:view_list", link_text="Views", + permissions=["netbox_dns.view_view"], buttons=( PluginMenuButton( "plugins:netbox_dns:view_add", @@ -25,6 +26,7 @@ PluginMenuItem( link="plugins:netbox_dns:zone_list", link_text="Zones", + permissions=["netbox_dns.view_zone"], buttons=( PluginMenuButton( "plugins:netbox_dns:zone_add", @@ -45,6 +47,7 @@ PluginMenuItem( link="plugins:netbox_dns:nameserver_list", link_text="Nameservers", + permissions=["netbox_dns.view_nameserver"], buttons=( PluginMenuButton( "plugins:netbox_dns:nameserver_add", @@ -65,6 +68,7 @@ PluginMenuItem( link="plugins:netbox_dns:record_list", link_text="Records", + permissions=["netbox_dns.view_record"], buttons=( PluginMenuButton( "plugins:netbox_dns:record_add", @@ -85,5 +89,6 @@ PluginMenuItem( link="plugins:netbox_dns:managed_record_list", link_text="Managed Records", + permissions=["netbox_dns.view_record"], ), )