diff options
Diffstat (limited to 'lib/api/members.rb')
-rw-r--r-- | lib/api/members.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/members.rb b/lib/api/members.rb index 1e640a6542a..9321b7ad8d5 100644 --- a/lib/api/members.rb +++ b/lib/api/members.rb @@ -177,6 +177,8 @@ module API source = find_source(source_type, params[:id]) member = source_members(source).find_by!(user_id: params[:user_id]) + check_rate_limit!(:member_delete, scope: [source, current_user]) + destroy_conditionally!(member) do ::Members::DestroyService.new(current_user).execute(member, skip_subresources: params[:skip_subresources], unassign_issuables: params[:unassign_issuables]) end |