projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
5200: Enable anonymous file view/download.
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
jobs_controller.rb
diff --git
a/apps/workbench/app/controllers/jobs_controller.rb
b/apps/workbench/app/controllers/jobs_controller.rb
index a85a70b26896047f378cd4101043733410a970e3..b90210f6a9b7be4c7bbea8a1193000ac9e8a7a56 100644
(file)
--- a/
apps/workbench/app/controllers/jobs_controller.rb
+++ b/
apps/workbench/app/controllers/jobs_controller.rb
@@
-1,5
+1,8
@@
class JobsController < ApplicationController
class JobsController < ApplicationController
- skip_around_filter :require_thread_api_token, only: :show
+ skip_around_filter :require_thread_api_token, if: proc { |ctrl|
+ Rails.configuration.anonymous_user_token and
+ 'show' == ctrl.action_name
+ }
include JobsHelper
include JobsHelper