Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/templates/admin/base.html
View
4 django/contrib/admin/templates/admin/base.html
@@ -19,9 +19,9 @@
<div id="branding">
{% block branding %}{% endblock %}
</div>
- {% if not user.is_anonymous %}
+ {% if not user.is_anonymous %}{% if user.is_staff %}
<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>
- {% endif %}
+ {% endif %}{% endif %}
{% block nav-global %}{% endblock %}
</div>
<!-- END Header -->
Please sign in to comment.
Something went wrong with that request. Please try again.