Commit a872257f authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix SSH access for LDAP users

parent 4a1ed00a
......@@ -38,7 +38,7 @@ module API
if user.ldap_user?
# Check if LDAP user exists and match LDAP user_filter
unless Gitlab::LDAP::Access.allowed?(user.extern_uid)
unless Gitlab::LDAP::Access.new.allowed?(user)
return false
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment