From 9bea85795705d015cdadc82c68b99196a8554f5c Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Sun, 29 Apr 2012 07:26:25 +0530 Subject: [PATCH] Fixed #17967: Hide "Change Password" link in admin if user.has_usable_password is False. --- django/contrib/admin/templates/admin/base.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 6e2de51440..3ebec911ed 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -32,7 +32,9 @@ {% if docsroot %} {% trans 'Documentation' %} / {% endif %} + {% if user.has_usable_password %} {% trans 'Change password' %} / + {% endif $} {% trans 'Log out' %} {% endblock %}