mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 08:25:17 -06:00
Add missing file
This commit is contained in:
parent
d0b1facfd8
commit
b23f7b7654
@ -36,9 +36,10 @@ class PluginMenuItem:
|
|||||||
permissions = []
|
permissions = []
|
||||||
buttons = []
|
buttons = []
|
||||||
|
|
||||||
def __init__(self, link, link_text, permissions=None, buttons=None):
|
def __init__(self, link, link_text, staff_only=False, permissions=None, buttons=None):
|
||||||
self.link = link
|
self.link = link
|
||||||
self.link_text = link_text
|
self.link_text = link_text
|
||||||
|
self.staff_only = staff_only
|
||||||
if permissions is not None:
|
if permissions is not None:
|
||||||
if type(permissions) not in (list, tuple):
|
if type(permissions) not in (list, tuple):
|
||||||
raise TypeError("Permissions must be passed as a tuple or list.")
|
raise TypeError("Permissions must be passed as a tuple or list.")
|
||||||
|
Loading…
Reference in New Issue
Block a user