Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6f71267e
Commit
6f71267e
authored
Aug 13, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ldap_user more explicit in param
parent
673b9a37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/ldap/access.rb
lib/gitlab/ldap/access.rb
+2
-2
No files found.
lib/gitlab/ldap/access.rb
View file @
6f71267e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment