add condition regarding experts emails in dossier controller instructeur

This commit is contained in:
kara Diaby 2021-04-09 12:56:09 +02:00
parent 61022119ba
commit 6bb61ca64f

View file

@ -60,7 +60,9 @@ module Instructeurs
def avis
@avis_seen_at = current_instructeur.follows.find_by(dossier: dossier)&.avis_seen_at
@avis = Avis.new
@experts_emails = dossier.procedure.experts_procedures.where(revoked_at: nil).map(&:expert).map(&:email).sort
if @dossier.procedure.feature_enabled?(:admin_affect_experts_to_avis)
@experts_emails = dossier.procedure.experts_procedures.where(revoked_at: nil).map(&:expert).map(&:email).sort
end
end
def personnes_impliquees