summaryrefslogtreecommitdiffstats
path: root/app/views/my
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my')
-rw-r--r--app/views/my/account.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/my/account.rhtml b/app/views/my/account.rhtml
index 9bf45b33e..befe6be5a 100644
--- a/app/views/my/account.rhtml
+++ b/app/views/my/account.rhtml
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to(l(:button_change_password), :action => 'password') unless @user.auth_source_id %>
+<%= link_to(l(:button_change_password), :action => 'password') if @user.change_password_allowed? %>
<%= call_hook(:view_my_account_contextual, :user => @user)%>
</div>
<h2><%=l(:label_my_account)%></h2>