diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-09-08 08:13:16 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-09-08 08:13:16 +0400 |
commit | 14d17b65f1713e140472426ef7f2a8e001bef044 (patch) | |
tree | 04a9d14d3c49ca59ded14b41b4f6ada1b486b633 /plugins/Live | |
parent | 5a57ec44be9a91e36a64ce0d9cb7667d4dcac5cb (diff) |
Refs #3490 hide user_id attribute from Live API responses when requesting user is anonymous
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/Visitor.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php index b9153a374d..a1ab3d2ee1 100644 --- a/plugins/Live/Visitor.php +++ b/plugins/Live/Visitor.php @@ -143,6 +143,7 @@ class Visitor implements VisitorInterface $toUnset = array('config_id'); if (Piwik::isUserIsAnonymous()) { $toUnset[] = 'idvisitor'; + $toUnset[] = 'user_id'; $toUnset[] = 'location_ip'; } foreach ($toUnset as $keyName) { |