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

Define permissions required to see navigation menu items #229

Merged
merged 1 commit into from
Sep 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"],
),
)