5261: When redirecting during an AJAX request, send the target URI in
[arvados.git] / apps / workbench / app / controllers / jobs_controller.rb
index e1378f23907a0c19c47c9fc199dfc1e6230c5f16..7edf8cc30d542a69489589b52b3c05d4abf0e270 100644 (file)
@@ -1,4 +1,9 @@
 class JobsController < ApplicationController
+  skip_around_filter :require_thread_api_token, if: proc { |ctrl|
+    Rails.configuration.anonymous_user_token and
+    'show' == ctrl.action_name
+  }
+
   include JobsHelper
 
   def generate_provenance(jobs)
@@ -80,8 +85,6 @@ class JobsController < ApplicationController
   end
 
   def show_pane_list
-    panes = %w(Status Log Details Provenance Advanced)
-    panes.delete 'Log' if !current_user.is_active
-    panes
+    %w(Status Log Details Provenance Advanced)
   end
 end