demarches-normaliennes/app/controllers/root_controller.rb

22 lines
478 B
Ruby
Raw Normal View History

class RootController < ApplicationController
def index
if user_signed_in?
redirect_to users_dossiers_path
elsif gestionnaire_signed_in?
redirect_to backoffice_dossiers_path
elsif administrateur_signed_in?
redirect_to admin_procedures_path
2016-02-23 16:51:24 +01:00
elsif administration_signed_in?
redirect_to administrations_path
else
2016-09-19 17:06:09 +02:00
# @latest_release = Github::Releases.latest
2016-09-19 17:02:29 +02:00
@latest_release = nil
2016-02-01 17:16:00 +01:00
render 'landing'
end
end
end