Handle nil name in Gitlab::Auth::LDAP::Person#name

Signed-off-by: NRémy Coutable <remy@rymai.me>
上级 e872be6d
......@@ -69,7 +69,7 @@ module Gitlab
end
def name
attribute_value(:name).first
attribute_value(:name)&.first
end
def uid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册