2016-09-27 17:26:49 +02:00
|
|
|
class Backoffice::Dossiers::ProcedureController < Backoffice::DossiersListController
|
2016-09-06 11:07:26 +02:00
|
|
|
|
2016-09-27 17:26:49 +02:00
|
|
|
def index
|
|
|
|
super
|
2016-09-06 11:07:26 +02:00
|
|
|
|
2016-09-27 17:26:49 +02:00
|
|
|
dossiers_list_facade.service.filter_procedure! params[:id]
|
2016-09-26 13:58:54 +02:00
|
|
|
|
2016-09-06 11:07:26 +02:00
|
|
|
render 'backoffice/dossiers/index'
|
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
flash[:alert] = "Cette procédure n'existe pas ou vous n'y avez pas accès."
|
|
|
|
redirect_to backoffice_dossiers_path
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def retrieve_procedure
|
|
|
|
current_gestionnaire.procedures.find params[:id]
|
|
|
|
end
|
|
|
|
end
|