Explorar o código

Fix django 1.6 user tools permission check

Denis K %!s(int64=9) %!d(string=hai) anos
pai
achega
6228f81cf8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,' %}