add condition regarding experts emails in dossier controller instructeur
This commit is contained in:
parent
61022119ba
commit
6bb61ca64f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue