From cc96723475a02d681843741bc9c8f9c15ac8f39a Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 9 Oct 2018 15:05:08 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20users=20to=20fill=20dossiers=20on=20d?= =?UTF-8?q?=C3=A9marches=20en=20brouillon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users/dossiers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/dossiers_controller.rb b/app/controllers/users/dossiers_controller.rb index fe2f10ed7..9ccffbfad 100644 --- a/app/controllers/users/dossiers_controller.rb +++ b/app/controllers/users/dossiers_controller.rb @@ -16,7 +16,7 @@ class Users::DossiersController < UsersController procedure_path = ProcedurePath.find_by(path: params[:procedure_path]) procedure = procedure_path&.procedure - if procedure&.brouillon_avec_lien? + if procedure&.brouillon? && procedure&.path.present? redirect_to new_users_dossier_path(procedure_id: procedure.id, brouillon: true) else flash.alert = "La démarche est inconnue."