diff --git a/app/controllers/miq_request_controller.rb b/app/controllers/miq_request_controller.rb index 2a69154b893..17dd742db9d 100644 --- a/app/controllers/miq_request_controller.rb +++ b/app/controllers/miq_request_controller.rb @@ -461,8 +461,10 @@ def approver? end def rbac_feature_id(feature_id) - return feature_id unless %w[ae host].include?(params[:typ]) - "#{params[:typ]}_#{feature_id}" + # set this to be used to identify which Requests subtab was clicked + @request_tab = params[:typ].present? ? params[:typ] : session[:request_tab] if @request_tab.nil? + return feature_id unless %w[ae host].include?(@request_tab) + "#{@request_tab}_#{feature_id}" end # Delete all selected or single displayed action(s)