mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: rate limit user posts export
This commit is contained in:
@@ -5,9 +5,7 @@ class ExportCsvController < ApplicationController
|
||||
def export_entity
|
||||
params.require(:entity)
|
||||
params.require(:entity_type)
|
||||
if params[:entity_type] == "admin"
|
||||
guardian.ensure_can_export_admin_entity!(current_user)
|
||||
end
|
||||
guardian.ensure_can_export_entity!(params[:entity_type])
|
||||
|
||||
Jobs.enqueue(:export_csv_file, entity: params[:entity], user_id: current_user.id)
|
||||
render json: success_json
|
||||
|
||||
Reference in New Issue
Block a user