From 6f71267e8f12ee858c3f2e8e229eb00ff21e27dd Mon Sep 17 00:00:00 2001 From: Jan-Willem van der Meer Date: Wed, 13 Aug 2014 16:51:21 +0200 Subject: [PATCH] Make ldap_user more explicit in param --- lib/gitlab/ldap/access.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gitlab/ldap/access.rb b/lib/gitlab/ldap/access.rb index 1018f5a7eb..30b1bd1675 100644 --- a/lib/gitlab/ldap/access.rb +++ b/lib/gitlab/ldap/access.rb @@ -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