diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-07 06:33:03 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-07 06:33:03 +0400 |
commit | 61f42e89cd9f31d876b271fb777d499b1981ec58 (patch) | |
tree | 1e690d2680eb51b3d2bf208f6855ac65448ef8d1 /plugins | |
parent | 8716d5884950a9a1b89efee75ee95a94cebb92ea (diff) |
Do not check for super user here, as it is user agnostic.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SegmentEditor/SegmentEditor.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/SegmentEditor/SegmentEditor.php b/plugins/SegmentEditor/SegmentEditor.php index 544c5d69d6..c7dd76620c 100644 --- a/plugins/SegmentEditor/SegmentEditor.php +++ b/plugins/SegmentEditor/SegmentEditor.php @@ -55,19 +55,18 @@ class SegmentEditor extends \Piwik\Plugin public function getKnownSegmentsToArchiveAllSites(&$segments) { - if (!Piwik::hasUserSuperUserAccess()) { - return; - } - $this->getKnownSegmentsToArchiveForSite($segments, $idSite = false); } + /** + * Adds the pre-processed segments to the list of Segments. + * Used by CronArchive, ArchiveProcessor\Rules, etc. + * + * @param $segments + * @param $idSite + */ public function getKnownSegmentsToArchiveForSite(&$segments, $idSite) { - if (!Piwik::hasUserSuperUserAccess()) { - return; - } - $model = new Model(); $segmentToAutoArchive = $model->getSegmentsToAutoArchive($idSite); foreach ($segmentToAutoArchive as $segmentInfo) { |