diff options
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index 93e1d8c2e8..1bf1bae03d 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Common; use Piwik\Archive\ArchiveInvalidator; +use Piwik\Plugins\PrivacyManager\PrivacyManager; use Piwik\Tracker\Cache; use Piwik\Tracker\Model as TrackerModel; @@ -48,6 +49,12 @@ class SitesManager extends \Piwik\Plugin return; } + // Skip the screen if purging logs is enabled + $settings = PrivacyManager::getPurgeDataSettings(); + if ($settings['delete_logs_enable'] == 1) { + return; + } + $trackerModel = new TrackerModel(); if ($trackerModel->isSiteEmpty($siteId)) { $module = 'SitesManager'; |