demarches-normaliennes/app/controllers/backoffice_controller.rb

10 lines
No EOL
243 B
Ruby

class BackofficeController < ApplicationController
def index
if !gestionnaire_signed_in?
redirect_to(controller: '/gestionnaires/sessions', action: :new)
else
redirect_to(:backoffice_dossiers_a_traiter)
end
end
end