From 6116ec7e19677af9f4a799533b6eaa5711843a75 Mon Sep 17 00:00:00 2001 From: Gilbert Cherrie Date: Wed, 29 Nov 2023 13:48:44 -0500 Subject: [PATCH] Fix tasks permission issue --- app/controllers/miq_task_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/miq_task_controller.rb b/app/controllers/miq_task_controller.rb index fbd295b1f3b..e462e2f9cf3 100644 --- a/app/controllers/miq_task_controller.rb +++ b/app/controllers/miq_task_controller.rb @@ -32,7 +32,7 @@ class MiqTaskController < ApplicationController ].freeze def index - assert_privileges('tasks_view') + assert_privileges('miq_task_all_ui', 'miq_task_my_ui', :any => false) @tabform = nil # TODO: remove :feature => "job_my_smartproxy" and :feature => "job_all_smartproxy" from miq_user_roles.yml # above features assigned to the same roles as corresponding :feature => "miq_task_my_ui" @@ -45,7 +45,7 @@ def index # New tab was pressed def change_tab - assert_privileges('tasks_view') + assert_privileges('miq_task_all_ui', 'miq_task_my_ui', :any => false) @tabform = "tasks_#{params[:'uib-tab']}" jobs render :action => "jobs" @@ -70,7 +70,7 @@ def build_jobs_tab # Show job list for the current user def jobs - assert_privileges('tasks_view') + assert_privileges('miq_task_all_ui', 'miq_task_my_ui', :any => false) jobs_info end