|
15 | 15 | title="Add",
|
16 | 16 | icon_class="mdi mdi-plus-thick",
|
17 | 17 | color=ButtonColorChoices.GREEN,
|
| 18 | + permissions=["netbox_acls.add_accesslist"], |
18 | 19 | ),
|
19 | 20 | ]
|
20 | 21 |
|
|
24 | 25 | title="Add",
|
25 | 26 | icon_class="mdi mdi-plus-thick",
|
26 | 27 | color=ButtonColorChoices.GREEN,
|
| 28 | + permissions=["netbox_acls.add_aclstandardrule"], |
27 | 29 | ),
|
28 | 30 | ]
|
29 | 31 |
|
|
33 | 35 | title="Add",
|
34 | 36 | icon_class="mdi mdi-plus-thick",
|
35 | 37 | color=ButtonColorChoices.GREEN,
|
| 38 | + permissions=["netbox_acls.add_aclextendedrule"], |
36 | 39 | ),
|
37 | 40 | ]
|
38 | 41 |
|
|
42 | 45 | title="Add",
|
43 | 46 | icon_class="mdi mdi-plus-thick",
|
44 | 47 | color=ButtonColorChoices.GREEN,
|
| 48 | + permissions=["netbox_acls.add_aclinterfaceassignment"], |
45 | 49 | ),
|
46 | 50 | ]
|
47 | 51 |
|
|
54 | 58 | link="plugins:netbox_acls:accesslist_list",
|
55 | 59 | link_text="Access Lists",
|
56 | 60 | buttons=accesslist_buttons,
|
| 61 | + permissions=["netbox_acls.view_accesslist"], |
57 | 62 | ),
|
58 | 63 | # Comment out Standard Access List rule to force creation in the ACL view
|
59 | 64 | PluginMenuItem(
|
60 | 65 | link="plugins:netbox_acls:aclstandardrule_list",
|
61 | 66 | link_text="ACL Standard Rules",
|
62 | 67 | buttons=aclstandardrule_butons,
|
| 68 | + permissions=["netbox_acls.view_aclstandardrule"], |
63 | 69 | ),
|
64 | 70 | # Comment out Extended Access List rule to force creation in the ACL view
|
65 | 71 | PluginMenuItem(
|
66 | 72 | link="plugins:netbox_acls:aclextendedrule_list",
|
67 | 73 | link_text="ACL Extended Rules",
|
68 | 74 | buttons=aclextendedrule_butons,
|
| 75 | + permissions=["netbox_acls.view_aclextendedrule"], |
69 | 76 | ),
|
70 | 77 | PluginMenuItem(
|
71 | 78 | link="plugins:netbox_acls:aclinterfaceassignment_list",
|
72 | 79 | link_text="ACL Interface Assignments",
|
73 | 80 | buttons=accesslistassignment_buttons,
|
| 81 | + permissions=["netbox_acls.view_aclinterfaceassignment"], |
74 | 82 | ),
|
75 | 83 | )
|
0 commit comments