Browse Source

Fix django 1.6 user tools permission check

Denis K 9 năm trước cách đây
mục cha
commit
6228f81cf8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      jet/templates/admin/base.html

+ 1 - 1
jet/templates/admin/base.html

@@ -49,7 +49,7 @@
         {% block branding %}{% endblock %}
         </div>
         {% block usertools %}
-        {% if has_permission %}
+        {% if user.is_active and user.is_staff or has_permission %}
         <div id="user-tools">
             {% block welcome-msg %}
                 {% trans 'Welcome,' %}