Commit 9bea8579 authored by Aviral Dasgupta's avatar Aviral Dasgupta
Browse files

Fixed #17967: Hide "Change Password" link in admin if user.has_usable_password is False.

parent 97c89928
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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>