Reuse the ldap adapter

This commit is contained in:
Jan-Willem van der Meer
2014-10-03 17:21:38 +02:00
parent e08c14c0f0
commit ce22ffbc7f
+1 -1
View File
@@ -38,7 +38,7 @@ module Gitlab
end
def get_ldap_user(user)
@ldap_user ||= Gitlab::LDAP::Person.find_by_dn(user.extern_uid)
@ldap_user ||= Gitlab::LDAP::Person.find_by_dn(user.extern_uid, adapter)
end
def update_permissions(user)