diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-23 03:16:37 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-23 03:16:37 +0000 |
commit | 908d44519c410db2ef841c72e501a6c198051b43 (patch) | |
tree | d3cdca7c8028f2ad4c9842f1cce683d9304862d8 /app/views/my | |
parent | 715c9d16ef2c2effbc614dace8b50d145e703b80 (diff) | |
download | redmine-908d44519c410db2ef841c72e501a6c198051b43.tar.gz redmine-908d44519c410db2ef841c72e501a6c198051b43.zip |
Allow AuthSources to control if they allow password changes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r-- | app/views/my/account.rhtml | 2 |
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> |