Make ldap_user more explicit in param

This commit is contained in:
Jan-Willem van der Meer
2014-08-13 16:51:21 +02:00
parent 673b9a373b
commit 6f71267e8f
+2 -2
View File
@@ -144,9 +144,9 @@ module Gitlab
end
# 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_group.has_member?(user)
ldap_group.has_member?(ldap_user)
end.map(&:cn)
end
end