diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 585d1d1c..4e89d2c3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -17,7 +17,7 @@ def current_user helper_method :current_user def current_company - @current_company ||= current_user.current_company + @current_company ||= current_user&.current_company end helper_method :current_company