diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-06-05 00:21:12 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-06-05 00:21:12 +0000 |
| commit | 066dac168d621f074a3e5296482107c5c18972a7 (patch) | |
| tree | bb2530cc8c2477f17889c023c4cf9a59cd2a74ee /django/contrib/admin/templates | |
| parent | b5adf70c6ce21e81c565e35fabe56829bb1ef725 (diff) | |
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
Diffstat (limited to 'django/contrib/admin/templates')
| -rw-r--r-- | django/contrib/admin/templates/admin/base.html | 4 |
1 files 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 @@ <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 --> |
