mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-14 15:16:04 +10:00
Reuse the ldap adapter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user