Handle nil name in Gitlab::Auth::LDAP::Person#name
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
e872be6d17
commit
8018bc96a3
|
@ -69,7 +69,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
def name
|
||||
attribute_value(:name).first
|
||||
attribute_value(:name)&.first
|
||||
end
|
||||
|
||||
def uid
|
||||
|
|
Loading…
Reference in New Issue