aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
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