From 4536d3c484d498c95c8b603deee8494a928d52ba Mon Sep 17 00:00:00 2001 From: David Kelly Date: Wed, 10 May 2017 10:09:45 -0700 Subject: [PATCH] cr feedback --- scripts/system/makeUserConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/makeUserConnection.js b/scripts/system/makeUserConnection.js index 0475c1a398..a8afad2e1c 100644 --- a/scripts/system/makeUserConnection.js +++ b/scripts/system/makeUserConnection.js @@ -613,7 +613,7 @@ // 3. We also don't want to connect to someone who is anonymous _now_, but was not earlier and still has // the same node id. Since the messaging doesn't say _who_ isn't logged in, fail the same as if we are // not logged in. - if (!Account.isLoggedIn() || !isLoggedIn) { + if (!Account.isLoggedIn() || isLoggedIn === false) { handleConnectionResponseAndMaybeRepeat("401:Unauthorized", {statusCode: 401}); return; }