From 4adf2e3750dab2ffefe5ceffe26ebe3cf05b8652 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 13 Dec 2015 09:40:39 +0100 Subject: [PATCH] Fixed long poling without session user. --- app/controllers/long_polling_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/long_polling_controller.rb b/app/controllers/long_polling_controller.rb index 492d8af48..f5b50c9f4 100644 --- a/app/controllers/long_polling_controller.rb +++ b/app/controllers/long_polling_controller.rb @@ -18,7 +18,7 @@ class LongPollingController < ApplicationController params['data'] = {} end session_data = {} - if current_user.id + if current_user && current_user.id session_data = { 'id' => current_user.id } end