invites: update link to dossier

This commit is contained in:
Pierre de La Morinerie 2018-09-27 17:12:41 +02:00
parent 08dfe7d13a
commit 5f1ce48d2e

View file

@ -12,12 +12,10 @@ class Users::Dossiers::InvitesController < UsersController
def show
@facade = InviteDossierFacades.new params[:id].to_i, current_user.email
if Flipflop.new_dossier_details?
return redirect_to dossier_path(@facade.dossier)
end
if @facade.dossier.brouillon?
redirect_to brouillon_dossier_path(@facade.dossier)
elsif Flipflop.new_dossier_details?
return redirect_to dossier_path(@facade.dossier)
else
render 'users/recapitulatif/show'
end