modify controllers

This commit is contained in:
kara Diaby 2021-04-16 11:11:39 +02:00
parent 541a36abbf
commit 01a91fb35b
2 changed files with 9 additions and 3 deletions

View file

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