change procedures controller

This commit is contained in:
kara Diaby 2021-03-30 17:54:25 +02:00
parent 4d00aea7b3
commit f4acc83269

View file

@ -186,7 +186,8 @@ module NewAdministrateur
end
def invited_expert_list
@experts_procedure = @procedure.experts_procedures.sort_by { |expert_procedure| expert_procedure.expert.email }
@experts_procedure = @procedure.experts_procedures.where(revoked_at: nil).sort_by { |expert_procedure| expert_procedure.expert.email }
@experts_emails = experts_procedure_emails
end
def update_allow_decision_access
@ -198,6 +199,10 @@ module NewAdministrateur
private
def experts_procedure_emails
@procedure.experts.map(&:email).sort
end
def apercu_tab
params[:tab] || 'dossier'
end