Disable IP addresses for Live plugin if not admin/super user


#1

If you only want super users to have access to the IP addresses in the Live IP plugin, you can change line 613 of /plugins/Live/Visitor.php from:

if (Piwik::isUserIsAnonymous()) {

to:

if (!Piwik::hasUserSuperUserAccess()) {

Thought someone might find that useful if you have users who you want to be able to see visitor stats for their particular websites but don’t want them to see the IP location or visitor ID.