summaryrefslogtreecommitdiff
path: root/config/routes/sidekiq.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/sidekiq.rb')
-rw-r--r--config/routes/sidekiq.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/sidekiq.rb b/config/routes/sidekiq.rb
index d3e6bc4c292..0fa23f2b3d0 100644
--- a/config/routes/sidekiq.rb
+++ b/config/routes/sidekiq.rb
@@ -1,4 +1,4 @@
-constraint = lambda { |request| request.env['warden'].authenticate? and request.env['warden'].user.admin? }
+constraint = lambda { |request| request.env['warden'].authenticate? && request.env['warden'].user.admin? }
constraints constraint do
mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq
end