mirror of https://github.com/django/django.git
Merge pull request #17 from aviraldg/fix_17967
Fixed #17967: Hide "Change Password" link in admin if user.has_usable_password is False.
This commit is contained in:
commit
d20fbf46ba
|
@ -32,7 +32,9 @@
|
|||
{% if docsroot %}
|
||||
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
|
||||
{% endif %}
|
||||
{% if user.has_usable_password %}
|
||||
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
|
||||
{% endif $}
|
||||
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue