add access to super admins to delayed_job and flipper

This commit is contained in:
clemkeirua 2020-11-06 17:23:54 +01:00 committed by Keirua (Rebase PR Action)
parent 36b9aa7efa
commit fc690df554

View file

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