mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-12 10:38:16 -06:00
Account for absence of auth_required on PluginMenuItem
This commit is contained in:
parent
a4789ba9c7
commit
5e86b8f634
@ -26,7 +26,7 @@ def nav(context):
|
||||
for group in menu.groups:
|
||||
items = []
|
||||
for item in group.items:
|
||||
if item.auth_required and not user.is_authenticated:
|
||||
if getattr(item, 'auth_required', False) and not user.is_authenticated:
|
||||
continue
|
||||
if not user.has_perms(item.permissions):
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user