summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2019-03-21 10:10:44 +0000
committerDouwe Maan <douwe@gitlab.com>2019-03-21 10:10:44 +0000
commitd141b87496283496e2f2a04c544f32456c6d263f (patch)
tree3b3d6033b088ccdeea3e938f1e8900ab7ee0d827 /lib
parent1efa960444a2a09bfb8d18c696f23aa281ad7fb3 (diff)
parent8018bc96a3c836682d2a4ad1dff775d04e359dec (diff)
downloadgitlab-ce-d141b87496283496e2f2a04c544f32456c6d263f.tar.gz
Merge branch 'ce-1974-update-user-name-upon-ldap-sync' into 'master'
Handle nil name in Gitlab::Auth::LDAP::Person#name See merge request gitlab-org/gitlab-ce!26364
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/auth/ldap/person.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth/ldap/person.rb b/lib/gitlab/auth/ldap/person.rb
index 13d67e0f871..c1517222956 100644
--- a/lib/gitlab/auth/ldap/person.rb
+++ b/lib/gitlab/auth/ldap/person.rb
@@ -69,7 +69,7 @@ module Gitlab
end
def name
- attribute_value(:name).first
+ attribute_value(:name)&.first
end
def uid