Make ldap_user more explicit in param

parent 673b9a37
...@@ -144,9 +144,9 @@ module Gitlab ...@@ -144,9 +144,9 @@ module Gitlab
end end
# returns a collection of cn strings to which the user has access # returns a collection of cn strings to which the user has access
def cns_with_access(user) def cns_with_access(ldap_user)
@ldap_groups_with_access ||= ldap_groups.select do |ldap_group| @ldap_groups_with_access ||= ldap_groups.select do |ldap_group|
ldap_group.has_member?(user) ldap_group.has_member?(ldap_user)
end.map(&:cn) end.map(&:cn)
end end
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