Merge pull request #5727 from betagouv/fix-access-to-flipper-dj

Add access to super admins to delayed_job and flipper
This commit is contained in:
Keirua 2020-11-09 09:09:33 +01:00 committed by GitHub
commit a9d22a74bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ Rails.application.routes.draw do
post 'demandes/create_administrateur'
post 'demandes/refuse_administrateur'
authenticate :administration do
authenticate :super_admin do
mount Flipper::UI.app(-> { Flipper.instance }) => "/features", as: :flipper
match "/delayed_job" => DelayedJobWeb, :anchor => false, :via => [:get, :post]
end