2015-10-26 16:10:38 +01:00
|
|
|
class RootController < ApplicationController
|
|
|
|
def index
|
|
|
|
|
|
|
|
if user_signed_in?
|
|
|
|
redirect_to users_dossiers_path
|
2015-12-03 12:00:22 +01:00
|
|
|
|
2015-10-26 16:10:38 +01:00
|
|
|
elsif gestionnaire_signed_in?
|
2015-12-02 18:03:52 +01:00
|
|
|
redirect_to backoffice_dossiers_path
|
2015-12-03 12:00:22 +01:00
|
|
|
|
2015-10-26 16:10:38 +01:00
|
|
|
elsif administrateur_signed_in?
|
|
|
|
redirect_to admin_procedures_path
|
2015-12-03 12:00:22 +01:00
|
|
|
|
2015-10-26 16:10:38 +01:00
|
|
|
else
|
|
|
|
redirect_to new_user_session_path
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|