提交 b2427967 编写于 作者: K Kasper Timm Hansen

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

This reverts commit 296d024b, reversing
changes made to e341d835.

We aren't trying to compare to current_user, we're assigning that variable.
上级 09436fb6
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册