diff --git a/app/models/user.rb b/app/models/user.rb index c46d6200ce..bad9777927 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -356,7 +356,7 @@ class User < Principal # Does the backend storage allow this user to change their password? def change_password_allowed? - return false unless identity_url.blank? + return false if uses_external_authentication? return true if auth_source_id.blank? return auth_source.allow_password_changes? end diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index de5c06fcb5..3d1d754b70 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -54,7 +54,7 @@ See doc/COPYRIGHT.rdoc for more details.