[Fix #1677] Do not show 'submit' button to invités

This commit is contained in:
Frederic Merizen 2018-03-28 16:39:35 +02:00
parent dd219d5d40
commit 33f7b03ff2

View file

@ -52,9 +52,10 @@
class: 'button send',
data: { action: 'draft', disable_with: 'Envoi...' }
= f.button 'Soumettre le dossier',
class: 'button send primary',
data: { action: 'submit', disable_with: 'Envoi...' }
- if @dossier.user == current_user
= f.button 'Soumettre le dossier',
class: 'button send primary',
data: { action: 'submit', disable_with: 'Envoi...' }
- else
= f.button 'Modifier le dossier',