Revert "Merge pull request #28569 from HarryCollins/patch-1"

This reverts commit 296d024b4e91c4891ae0b010249193513e63b921, reversing
changes made to e341d835070c7ef9990f41e02bbf46536be0aee7.

We aren't trying to compare to current_user, we're assigning that variable.
This commit is contained in:
Kasper Timm Hansen 2017-03-25 12:40:53 +01:00
parent 09436fb6d6
commit b242796765

@ -53,7 +53,7 @@ module ApplicationCable
private
def find_verified_user
if current_user == User.find_by(id: cookies.signed[:user_id])
if current_user = User.find_by(id: cookies.signed[:user_id])
current_user
else
reject_unauthorized_connection