mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +11738 from c9/add-extra-guards-analytics
Add extra guards for users without id or with old uid
This commit is contained in:
commit
01e3259677
2
node_modules/c9/skip-analytics.js
generated
vendored
2
node_modules/c9/skip-analytics.js
generated
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user