Merge branch 'delete_draft_dossier' into develop

This commit is contained in:
Xavier J 2016-10-27 13:47:00 +02:00
commit 382e4b6857

View file

@ -132,7 +132,7 @@ class Users::DossiersController < UsersController
end
def destroy
dossier = Dossier.find(params[:id])
dossier = current_user.dossiers.find(params[:id])
if dossier.brouillon?
dossier.destroy
flash.notice = 'Brouillon supprimé'