diff options
Diffstat (limited to 'lib/api/invitations.rb')
-rw-r--r-- | lib/api/invitations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/invitations.rb b/lib/api/invitations.rb index 75f63a5d98f..6fb3eca0ba8 100644 --- a/lib/api/invitations.rb +++ b/lib/api/invitations.rb @@ -28,7 +28,7 @@ module API optional :tasks_to_be_done, type: Array[String], coerce_with: Validations::Types::CommaSeparatedToArray.coerce, desc: 'Tasks the inviter wants the member to do' optional :tasks_project_id, type: Integer, desc: 'The project ID in which to create the task issues' end - post ":id/invitations" do + post ":id/invitations", urgency: :low do ::Gitlab::QueryLimiting.disable!('https://gitlab.com/gitlab-org/gitlab/-/issues/354016') bad_request!('Must provide either email or user_id as a parameter') if params[:email].blank? && params[:user_id].blank? @@ -36,7 +36,7 @@ module API source = find_source(source_type, params[:id]) authorize_admin_source!(source_type, source) - create_service_params = params.except(:user_id).merge({ user_ids: params[:user_id], source: source }) + create_service_params = params.merge(source: source) ::Members::InviteService.new(current_user, create_service_params).execute end |