refactor instructeur_avis_url

This commit is contained in:
Christophe Robillard 2020-05-20 16:32:06 +02:00
parent b0cfb2c02a
commit 4839506374
9 changed files with 14 additions and 14 deletions

View file

@ -119,7 +119,7 @@ module Instructeurs
if current_instructeur.present?
# a instructeur is authenticated ... lets see if it can view the dossier
redirect_to instructeur_avis_url(avis)
redirect_to instructeur_avis_url(avis.procedure, avis)
elsif avis.instructeur&.email == params[:email]
# the avis instructeur has already signed up and it sould sign in