Merge branch '15422-collections-prov-doc' refs #15422
[arvados.git] / apps / workbench / app / controllers / work_units_controller.rb
index d3ded867c198f5c265fafb7b49a89d50e1515fc9..1ecea99babce40e6755839889d0f6dad6ef26b18 100644 (file)
@@ -3,8 +3,8 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 class WorkUnitsController < ApplicationController
-  skip_around_filter :require_thread_api_token, if: proc { |ctrl|
-    Rails.configuration.anonymous_user_token and
+  skip_around_action :require_thread_api_token, if: proc { |ctrl|
+    !Rails.configuration.Users.AnonymousUserToken.empty? and
     'show_child_component' == ctrl.action_name
   }