Merge pull request #10032 from mfo/US/fix-api-attestations

API: fix régression d'accès aux attestations PDF
This commit is contained in:
Colin Darie 2024-02-22 14:24:20 +00:00 committed by GitHub
commit a99c20e1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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