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
|
|
|
|
2016-02-23 16:51:24 +01:00
|
|
|
elsif administration_signed_in?
|
|
|
|
redirect_to administrations_path
|
|
|
|
|
2015-10-26 16:10:38 +01:00
|
|
|
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'
|
2015-10-26 16:10:38 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|