Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
319dea10f0
commit
3677c80c9b
2 changed files with 8 additions and 2 deletions
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue