1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add perms to PluginTemplateExtension context

This commit is contained in:
Sander Steffann
2020-05-22 22:24:05 +02:00
parent 1f5d2520c3
commit 27700d316f

@ -18,6 +18,7 @@ def _get_registered_content(obj, method, template_context):
'object': obj,
'request': template_context['request'],
'settings': template_context['settings'],
'perms': template_context['perms'],
}
model_name = obj._meta.label_lower