[Fix #1677] Do not show 'submit' button to invités
This commit is contained in:
parent
dd219d5d40
commit
33f7b03ff2
1 changed files with 4 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue