kopia lustrzana https://github.com/c9/core
commit
518aa8732e
|
@ -12,13 +12,13 @@ define(function(require, exports, module) {
|
|||
|
||||
function skipAnalytics(userId, name, email, allowUnauthorized) {
|
||||
|
||||
if (!userId) return true; // users without an id should never reach the Segment library
|
||||
|
||||
if (typeof userId == "object") {
|
||||
var user = userId;
|
||||
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 (hasInternalTestName(name)) return true;
|
||||
|
|
Ładowanie…
Reference in New Issue