Skip to content

Commit

Permalink
fix(dossier): render PJ champ respects profile context
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Aug 20, 2024
1 parent e6c2926 commit 87cc8a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- when TypeDeChamp.type_champs.fetch(:multiple_drop_down_list)
= render partial: "shared/champs/multiple_drop_down_list/show", locals: { champ: champ }
- when TypeDeChamp.type_champs.fetch(:piece_justificative), TypeDeChamp.type_champs.fetch(:titre_identite)
= render partial: "shared/champs/piece_justificative/show", locals: { champ: champ }
= render partial: "shared/champs/piece_justificative/show", locals: { champ: champ, profile: @profile }
- when TypeDeChamp.type_champs.fetch(:siret)
= render partial: "shared/champs/siret/show", locals: { champ: champ, profile: @profile }
- when TypeDeChamp.type_champs.fetch(:iban)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.fr-downloads-group
- if instructeur_signed_in? && feature_enabled?(:gallery_demande)
- if profile == 'instructeur' && feature_enabled?(:gallery_demande)
.gallery-items-list
- champ.piece_justificative_file.attachments.with_all_variant_records.each do |attachment|
.gallery-item
Expand Down

0 comments on commit 87cc8a7

Please sign in to comment.