demarches-normaliennes/app/controllers/backoffice_controller.rb
Xavier J fd9061abdf - Administrateur can't show only his procedures
- Gestionnaire can't show only files of his Administrateur's procedures
2015-11-10 11:58:56 +01:00

12 lines
No EOL
422 B
Ruby

class BackofficeController < ApplicationController
def index
if !gestionnaire_signed_in?
redirect_to(controller: '/gestionnaires/sessions', action: :new)
else
@dossiers_a_traiter = Dossier.a_traiter(current_gestionnaire).decorate
@dossiers_en_attente = Dossier.en_attente(current_gestionnaire).decorate
@dossiers_termine = Dossier.termine(current_gestionnaire).decorate
end
end
end