Merge pull request #2781 from tchak/allow-users-to-fill-test-dossiers
Allow users to fill dossiers on démarches en brouillon
This commit is contained in:
commit
acacfebd92
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue