Преглед изворни кода

Add `perms` to PluginTemplateExtension context

Sander Steffann пре 5 година
родитељ
комит
27700d316f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      netbox/extras/templatetags/plugins.py

+ 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