소스 검색

Merge branch 'develop' into 4651-csrf-in-plugintemplateextension

Jeremy Stretch 6 년 전
부모
커밋
4545c15173
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      netbox/extras/templatetags/plugins.py

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

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