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
|
2016-02-01 17:16:00 +01:00
|
|
|
render 'landing'
|
2015-10-26 16:10:38 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|