From 4304baee8e6cc9483a0cae397149526a0e8356fb Mon Sep 17 00:00:00 2001 From: radhika Date: Wed, 19 Oct 2016 16:19:23 -0400 Subject: [PATCH] 10079: show_child_component method needs anonymous access --- apps/workbench/app/controllers/work_units_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/workbench/app/controllers/work_units_controller.rb b/apps/workbench/app/controllers/work_units_controller.rb index c0845ee790..e375689660 100644 --- a/apps/workbench/app/controllers/work_units_controller.rb +++ b/apps/workbench/app/controllers/work_units_controller.rb @@ -1,4 +1,9 @@ class WorkUnitsController < ApplicationController + skip_around_filter :require_thread_api_token, if: proc { |ctrl| + Rails.configuration.anonymous_user_token and + 'show_child_component' == ctrl.action_name + } + def find_objects_for_index # If it's not the index rows partial display, just return # The /index request will again be invoked to display the -- 2.30.2