From 98eeee68df63710520cdcfa83b830e2c425fb6ab Mon Sep 17 00:00:00 2001 From: Milan Zazrivec Date: Wed, 24 Jul 2019 17:05:09 +0200 Subject: [PATCH] Add assert_privileges() to download_migration_log() --- app/controllers/migration_log_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/migration_log_controller.rb b/app/controllers/migration_log_controller.rb index 0488ec8393..8a744693c1 100644 --- a/app/controllers/migration_log_controller.rb +++ b/app/controllers/migration_log_controller.rb @@ -10,6 +10,7 @@ class MigrationLogController < ApplicationController # are rendered. # def download_migration_log + assert_privileges('migration') plan_task = ServiceTemplateTransformationPlanTask.find(params[:id]) log_type = params[:log_type] || 'v2v' miq_tasks_id = plan_task.transformation_log_queue(nil, log_type)