Force skip of analytics if no id

pull/248/head
Dana 2016-01-25 13:30:55 +00:00
rodzic 57fd9954a9
commit 2e3b4512b2
1 zmienionych plików z 2 dodań i 2 usunięć

4
node_modules/c9/skip-analytics.js wygenerowano vendored
Wyświetl plik

@ -17,9 +17,9 @@ define(function(require, exports, module) {
return skipAnalytics(user.id, user.name || user.username, user.email, name); // make it backwards compatible for the client
}
if (!allowUnauthorized && userId === -1) return true;
if (!userId) return true; // users without an id should never reach the Segment library
if (!userId) return true;
if (!allowUnauthorized && userId === -1) return true;
if (hasInternalTestName(name)) return true;
if (hasInternalDomain(email)) return true;