fix(api/attestations#pdf): missing acl

This commit is contained in:
Martin 2024-02-22 14:16:26 +01:00
parent 284ecf864b
commit c9ea79c7cc

View file

@ -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