dossiers: fix edit button being visible on locked dossiers

Fix #4143
This commit is contained in:
Pierre de La Morinerie 2019-07-29 10:41:58 +02:00
parent a20e658cdb
commit f1838f3767

View file

@ -11,7 +11,8 @@
= "- Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')}"
- if current_user.owns?(dossier)
= link_to "Modifier mon dossier", modifier_dossier_path(dossier.id), class: 'button accepted edit-form', 'title'=> "Vous pouvez modifier votre dossier tant qu'il n'est passé en instruction"
- if dossier.can_be_updated_by_user?
= link_to "Modifier mon dossier", modifier_dossier_path(dossier.id), class: 'button accepted edit-form', 'title'=> "Vous pouvez modifier votre dossier tant qu'il n'est passé en instruction"
= render partial: 'invites/dropdown', locals: { dossier: dossier }
.clearfix