From 066dac168d621f074a3e5296482107c5c18972a7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 5 Jun 2006 00:21:12 +0000 Subject: [PATCH] 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 --- django/contrib/admin/templates/admin/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 912a620010..a8c1c9c101 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -19,9 +19,9 @@
{% block branding %}{% endblock %}
- {% if not user.is_anonymous %} + {% if not user.is_anonymous %}{% if user.is_staff %}
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}. {% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
- {% endif %} + {% endif %}{% endif %} {% block nav-global %}{% endblock %}