aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorZog2018-02-27 08:47:46 +0100
committerJohan Van Ryseghem2018-03-27 10:53:27 +0200
commit54401ef8b7c61e5a440a1d2b958e78d2ba0bd236 (patch)
treee517e54e00288b0a02884d1718bf44566500cabe /config/routes.rb
parent6499b988747a5a1dc937f0f66f68785f0d65b79e (diff)
downloadchouette-core-54401ef8b7c61e5a440a1d2b958e78d2ba0bd236.tar.bz2
Refs #5871; Add a dedicated permission "sidekiq.monitor"
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 76d6b6dc7..41b345aa5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -177,10 +177,10 @@ ChouetteIhm::Application.routes.draw do
end
end
- authenticate :user do
+ authenticate :user, lambda { |u| u.can_monitor_sidekiq? } do
mount Sidekiq::Web => '/sidekiq'
end
-
+
namespace :api do
namespace :v1 do
resources :workbenches, except: [:destroy] do