From 1a0654a24c66e3213a01f9425c3f14b6a4b2c410 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Wed, 29 Jan 2025 13:10:27 -0500 Subject: [PATCH] Add auth_required attrib on PluginMenuItem --- netbox/netbox/plugins/navigation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/netbox/plugins/navigation.py b/netbox/netbox/plugins/navigation.py index 01b8a0442ac..fc86b134adb 100644 --- a/netbox/netbox/plugins/navigation.py +++ b/netbox/netbox/plugins/navigation.py @@ -38,9 +38,10 @@ class PluginMenuItem: permissions = [] buttons = [] - def __init__(self, link, link_text, staff_only=False, permissions=None, buttons=None): + def __init__(self, link, link_text, auth_required=False, staff_only=False, permissions=None, buttons=None): self.link = link self.link_text = link_text + self.auth_required = auth_required self.staff_only = staff_only if permissions is not None: if type(permissions) not in (list, tuple):