diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0e409cf88..a0b353e99 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -33,6 +33,12 @@ class ApplicationController < ActionController::Base @facade_data_view = nil end + def logged_in? + logged_user.present? + end + + helper_method :logged_in? + protected def authenticate_gestionnaire!