Commit 84c90b16 authored by Blair Lunceford's avatar Blair Lunceford

Apply changes to auto_link_user? method

parent ee9d1ac9
......@@ -274,11 +274,10 @@ module Gitlab
def auto_link_user?
auto_link = Gitlab.config.omniauth.auto_link_user
if auto_link.is_a?(Array)
auto_link.include?(auth_hash.provider)
else
auto_link
end
return auto_link if [true, false].include?(auto_link)
auto_link = Array(auto_link)
auto_link.include?(auth_hash.provider)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment