fix(dossier): render PJ champ respects profile context

This commit is contained in:
Colin Darie 2024-08-20 15:52:30 +02:00
parent e6c2926426
commit 87cc8a7241
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 2 additions and 2 deletions

View file

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