2
0
Эх сурвалжийг харах

Merge pull request #4681 from netbox-community/4652-perms-in-plugintemplateextension

4652: Add `perms` to PluginTemplateExtension context
Jeremy Stretch 5 жил өмнө
parent
commit
b7cf85e8c8

+ 1 - 0
netbox/extras/templatetags/plugins.py

@@ -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