mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Code cleanup: RuboCop: Fix Style/RedundantReturn in app/models/user.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18394 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0898910b10
commit
331dcfbadc
@ -342,8 +342,7 @@ class User < Principal
|
|||||||
|
|
||||||
# Does the backend storage allow this user to change their password?
|
# Does the backend storage allow this user to change their password?
|
||||||
def change_password_allowed?
|
def change_password_allowed?
|
||||||
return true if auth_source.nil?
|
auth_source.nil? ? true : auth_source.allow_password_changes?
|
||||||
return auth_source.allow_password_changes?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns true if the user password has expired
|
# Returns true if the user password has expired
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user