From e264472481c7543208c0f37ae9bb70d0035bdadc Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 15 Dec 2021 13:33:33 +0100 Subject: [PATCH] fix(procedures): fix check to enable procedure delete --- app/views/administrateurs/procedures/_procedures_list.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/administrateurs/procedures/_procedures_list.html.haml b/app/views/administrateurs/procedures/_procedures_list.html.haml index f22fd03c4..b8592c9a9 100644 --- a/app/views/administrateurs/procedures/_procedures_list.html.haml +++ b/app/views/administrateurs/procedures/_procedures_list.html.haml @@ -57,7 +57,7 @@ .dropdown-description %h4 Clore - - if procedure.brouillon? + - if procedure.can_be_deleted_by_administrateur? %li = link_to admin_procedure_path(procedure), method: :delete, data: { confirm: "Voulez-vous vraiment supprimer la démarche ? \nToute suppression est définitive et s'appliquera aux éventuels autres administrateurs de cette démarche !" } do %span.icon.refuse