Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2019-12-26 18:07:46 +00:00
parent 319dea10f0
commit 3677c80c9b
2 changed files with 8 additions and 2 deletions

View file

@ -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')

View file

@ -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')