diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 01:31:14 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-22 01:31:14 +0300 |
commit | f40716f48a25809d197ba2abf32ce150b7b73efa (patch) | |
tree | 3356ea055ddee37517467c1f0ed4f4b98f655e6f /config/routes/sidekiq.rb | |
parent | deb62183edbd9111691f62a4f6a9febb1fcd79f7 (diff) |
No more and/or
Diffstat (limited to 'config/routes/sidekiq.rb')
-rw-r--r-- | config/routes/sidekiq.rb | 2 |
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 |