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

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2019-03-20 14:59:07 +01:00
parent e872be6d17
commit 8018bc96a3
No known key found for this signature in database
GPG Key ID: 98DFFD1C0C62B70B
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module Gitlab
end
def name
attribute_value(:name).first
attribute_value(:name)&.first
end
def uid