kopia lustrzana https://github.com/c9/core
Merge pull request +11738 from c9/add-extra-guards-analytics
Add extra guards for users without id or with old uidpull/242/head
commit
01e3259677
|
@ -13,6 +13,8 @@ define(function(require, exports, module) {
|
|||
function skipAnalytics(user, allowUnauthorized) {
|
||||
if (!user) return true;
|
||||
|
||||
if (!user.id && !user.uid) return true; // users without an id should never reach the Segment library
|
||||
|
||||
if (!allowUnauthorized && hasUnauthorizedId(user)) return true;
|
||||
|
||||
if (hasInternalTestName(user)) return true;
|
||||
|
|
Ładowanie…
Reference in New Issue