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
3677c80c
Commit
3677c80c
authored
Dec 26, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
319dea10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lib/api/helpers/members_helpers.rb
lib/api/helpers/members_helpers.rb
+7
-0
lib/api/members.rb
lib/api/members.rb
+1
-2
No files found.
lib/api/helpers/members_helpers.rb
View file @
3677c80c
...
...
@@ -5,6 +5,11 @@
module
API
module
Helpers
module
MembersHelpers
extend
Grape
::
API
::
Helpers
params
:optional_filter_params_ee
do
end
def
find_source
(
source_type
,
id
)
public_send
(
"find_
#{
source_type
}
!"
,
id
)
# rubocop:disable GitlabSecurity/PublicSend
end
...
...
@@ -42,3 +47,5 @@ module API
end
end
end
API
::
Helpers
::
MembersHelpers
.
prepend_if_ee
(
'EE::API::Helpers::MembersHelpers'
)
lib/api/members.rb
View file @
3677c80c
...
...
@@ -19,6 +19,7 @@ module API
params
do
optional
:query
,
type:
String
,
desc:
'A query string to search for members'
optional
:user_ids
,
type:
Array
[
Integer
],
desc:
'Array of user ids to look up for membership'
use
:optional_filter_params_ee
use
:pagination
end
...
...
@@ -157,5 +158,3 @@ module API
end
end
end
API
::
Members
.
prepend_if_ee
(
'EE::API::Members'
)
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