From c9ea79c7cc07044569e3c01fcae56ad11cb359ec Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 22 Feb 2024 14:16:26 +0100 Subject: [PATCH] fix(api/attestations#pdf): missing acl --- app/controllers/api/v2/dossiers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v2/dossiers_controller.rb b/app/controllers/api/v2/dossiers_controller.rb index 37f696b36..2e808dd7b 100644 --- a/app/controllers/api/v2/dossiers_controller.rb +++ b/app/controllers/api/v2/dossiers_controller.rb @@ -2,7 +2,7 @@ class API::V2::DossiersController < API::V2::BaseController before_action :ensure_dossier_present def pdf - @include_infos_administration = true + @acls = PiecesJustificativesService.new(user_profile: Administrateur.new).acl_for_dossier_export render(template: 'dossiers/show', formats: [:pdf]) end