6602: use min_nodes * (finished_at - started_at) to calculate the allocated node...
[arvados.git] / apps / workbench / app / controllers / jobs_controller.rb
index a85a70b26896047f378cd4101043733410a970e3..398417734c71c34f2aaac71fbf700eaf4d5f50d1 100644 (file)
@@ -1,7 +1,8 @@
 class JobsController < ApplicationController
-  skip_around_filter :require_thread_api_token, only: :show
-
-  include JobsHelper
+  skip_around_filter :require_thread_api_token, if: proc { |ctrl|
+    Rails.configuration.anonymous_user_token and
+    'show' == ctrl.action_name
+  }
 
   def generate_provenance(jobs)
     return if params['tab_pane'] != "Provenance"
@@ -82,8 +83,6 @@ class JobsController < ApplicationController
   end
 
   def show_pane_list
-    panes = %w(Status Log Details Provenance Advanced)
-    panes.delete 'Log' if !current_user
-    panes
+    %w(Status Log Details Provenance Advanced)
   end
 end