summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-21 16:31:14 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-21 16:31:14 -0600
commitf40716f48a25809d197ba2abf32ce150b7b73efa (patch)
tree3356ea055ddee37517467c1f0ed4f4b98f655e6f /config/routes
parentdeb62183edbd9111691f62a4f6a9febb1fcd79f7 (diff)
downloadgitlab-ce-f40716f48a25809d197ba2abf32ce150b7b73efa.tar.gz
No more and/or
Diffstat (limited to 'config/routes')
-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