Skip to content

Commit

Permalink
Merge pull request #1007 from mzazrivec/add_assert_privileges_to_down…
Browse files Browse the repository at this point in the history
…load_migration_log

Add assert_privileges() to download_migration_log()
  • Loading branch information
martinpovolny authored Jul 25, 2019
2 parents 2fc5ee5 + 98eeee6 commit 1a69dd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/migration_log_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a69dd9

Please sign in to comment.