fix(export.pdf): expert should not have access to messagerie when it was disabled
This commit is contained in:
parent
84f995bd47
commit
f4d2f1ddf5
7 changed files with 11 additions and 8 deletions
|
@ -51,7 +51,7 @@ module Instructeurs
|
|||
@is_dossier_in_batch_operation = dossier.batch_operation.present?
|
||||
respond_to do |format|
|
||||
format.pdf do
|
||||
@acls = PiecesJustificativesService.new(user_profile: current_instructeur).acl_for_dossier_export
|
||||
@acls = PiecesJustificativesService.new(user_profile: current_instructeur).acl_for_dossier_export(dossier.procedure)
|
||||
render(template: 'dossiers/show', formats: [:pdf])
|
||||
end
|
||||
format.all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue