kopia lustrzana https://github.com/c9/core
Force skip of analytics if no id
rodzic
57fd9954a9
commit
2e3b4512b2
|
@ -16,10 +16,10 @@ define(function(require, exports, module) {
|
||||||
var user = userId;
|
var user = userId;
|
||||||
return skipAnalytics(user.id, user.name || user.username, user.email, name); // make it backwards compatible for the client
|
return skipAnalytics(user.id, user.name || user.username, user.email, name); // make it backwards compatible for the client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!userId) return true; // users without an id should never reach the Segment library
|
||||||
|
|
||||||
if (!allowUnauthorized && userId === -1) return true;
|
if (!allowUnauthorized && userId === -1) return true;
|
||||||
|
|
||||||
if (!userId) return true;
|
|
||||||
|
|
||||||
if (hasInternalTestName(name)) return true;
|
if (hasInternalTestName(name)) return true;
|
||||||
if (hasInternalDomain(email)) return true;
|
if (hasInternalDomain(email)) return true;
|
||||||
|
|
Ładowanie…
Reference in New Issue