about summary refs log tree commit diff
path: root/app/channels
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-12 18:22:43 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-12 18:22:43 +0200
commitce29624c6df83699a01808d68c19a2492864ffe8 (patch)
tree822f151d24ab6c04f20b0926f6290621c476e032 /app/channels
parent3d566279cb84aba6d07eaadebda6c059f2a58657 (diff)
Fixing image upload limits, allowing webm, merge/unmerge events trigger
timeline reload in UI, other small fixes
Diffstat (limited to 'app/channels')
-rw-r--r--app/channels/application_cable/connection.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb
index f7cbe5485..772b76a6e 100644
--- a/app/channels/application_cable/connection.rb
+++ b/app/channels/application_cable/connection.rb
@@ -10,7 +10,9 @@ module ApplicationCable
     protected
 
     def find_verified_user
-      if verified_user = env['warden'].user
+      verified_user = env['warden'].user
+
+      if verified_user
         verified_user
       else
         reject_unauthorized_connection