diff options
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 096adc4a9..9003b253f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -342,8 +342,7 @@ class User < Principal # Does the backend storage allow this user to change their password? def change_password_allowed? - return true if auth_source.nil? - return auth_source.allow_password_changes? + auth_source.nil? ? true : auth_source.allow_password_changes? end # Returns true if the user password has expired |