Skip to content
Snippets Groups Projects
Commit f2598e20 authored by Anders Harrisson's avatar Anders Harrisson
Browse files

Merge branch 'feature/INFRA-10658-permissions' into 'main'

add 'add' and 'view' permissions to AWX and AWX Inventory menu items in NetBox AWX plugin

Closes INFRA-10658

See merge request !14
parents 71d28dbf a565b82f
No related branches found
No related tags found
1 merge request!14add 'add' and 'view' permissions to AWX and AWX Inventory menu items in NetBox AWX plugin
Pipeline #203787 passed
......@@ -7,6 +7,7 @@ plugin_buttons = [
title="Add",
icon_class="mdi mdi-plus-thick",
color=ButtonColorChoices.GREEN,
permissions=['netbox_awx_plugin.add_awx'], # Add permission for adding AWX
)
]
......@@ -16,6 +17,7 @@ awxinventory_buttons = [
title="Add inventory",
icon_class="mdi mdi-plus-thick",
color=ButtonColorChoices.GREEN,
permissions=['netbox_awx_plugin.add_awxinventory'], # Add permission for adding AWX Inventory
)
]
......@@ -24,10 +26,12 @@ menu_items = (
link="plugins:netbox_awx_plugin:awx_list",
link_text="AWX",
buttons=plugin_buttons,
permissions=['netbox_awx_plugin.view_awx'], # Add permission for viewing AWX
),
PluginMenuItem(
link="plugins:netbox_awx_plugin:awxinventory_list",
link_text="AWX Inventory",
buttons=awxinventory_buttons,
permissions=['netbox_awx_plugin.view_awxinventory'], # Add permission for viewing AWX Inventory
),
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment