limitation des params selon le type de PJ

This commit is contained in:
Benoit Queyron 2024-07-16 10:59:57 +02:00
parent ec24ce3dad
commit 79ba52317a
No known key found for this signature in database
GPG key ID: 9E723480C7317E22
2 changed files with 8 additions and 1 deletions

View file

@ -20,6 +20,7 @@ class AttachmentsController < ApplicationController
@attachment = @blob.attachments.find(params[:id])
@attachment.purge_later
flash.notice = 'La pièce jointe a bien été supprimée.'
if params[:dossier_id]
@champ = find_champ
else