demarches-normaliennes/app/controllers/backoffice_controller.rb
2017-04-04 16:59:38 +02:00

10 lines
234 B
Ruby

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