change procedures controller
This commit is contained in:
parent
4d00aea7b3
commit
f4acc83269
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue