Merge pull request #8482 from mfo/US/fix-patron

correctif(patron): limite l'usage de la page patron aux devs
This commit is contained in:
mfo 2023-01-24 09:50:45 +01:00 committed by GitHub
commit 4e0f83aad6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,7 @@ Rails.application.routes.draw do
resources :recherche, only: [:index]
resources :api_tokens, only: [:create, :update, :destroy]
get "patron" => "root#patron"
get "patron" => "root#patron" if Rails.env.development? || Rails.env.test?
get "suivi" => "root#suivi"
post "dismiss_outdated_browser" => "root#dismiss_outdated_browser"
post "save_locale" => "root#save_locale"