Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #229 from peteeckel/fix/navigation-menu-permissions
Browse files Browse the repository at this point in the history
Define permissions required to see navigation menu items
  • Loading branch information
hatsat32 authored Sep 25, 2022
2 parents f0b6ebb + 937e908 commit 84809aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netbox_dns/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -85,5 +89,6 @@
PluginMenuItem(
link="plugins:netbox_dns:managed_record_list",
link_text="Managed Records",
permissions=["netbox_dns.view_record"],
),
)

0 comments on commit 84809aa

Please sign in to comment.