Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2084 -- Removed admin-site 'documentation / change password / …

…log out' links on login page for users who are logged in but don't have staff status. Thanks, rudolphfroger

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 066dac168d621f074a3e5296482107c5c18972a7 1 parent b5adf70
Adrian Holovaty authored June 05, 2006
4  django/contrib/admin/templates/admin/base.html
@@ -19,9 +19,9 @@
19 19
         <div id="branding">
20 20
         {% block branding %}{% endblock %}
21 21
         </div>
22  
-        {% if not user.is_anonymous %}
  22
+        {% if not user.is_anonymous %}{% if user.is_staff %}
23 23
         <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href="doc/">{% trans 'Documentation' %}</a> / <a href="password_change/">{% trans 'Change password' %}</a> / <a href="logout/">{% trans 'Log out' %}</a>{% endblock %}</div>
24  
-        {% endif %}
  24
+        {% endif %}{% endif %}
25 25
         {% block nav-global %}{% endblock %}
26 26
     </div>
27 27
     <!-- END Header -->

0 notes on commit 066dac1

Please sign in to comment.
Something went wrong with that request. Please try again.