diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-10-19 18:34:01 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-10-19 18:34:01 +0300 |
commit | 65f63fa170bbe0ab87c8af744df40f6af40760c0 (patch) | |
tree | 2f79c3bdc472745315b97f94fd6ad06208e2afff /plugins/API | |
parent | cd92455a8d6984525927ac56ca1b7d32416be9b6 (diff) |
fix some tests
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 6 | ||||
-rw-r--r-- | plugins/API/SegmentMetadata.php | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index ae5e1b407f..5e046d41aa 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -553,8 +553,10 @@ class API extends \Piwik\Plugin\API { // If you update this, also update flattenVisitorDetailsArray $segmentsNeedActionsInfo = array('visitConvertedGoalId', - 'pageUrl', 'pageTitle', 'siteSearchKeyword', - 'entryPageTitle', 'entryPageUrl', 'exitPageTitle', 'exitPageUrl'); + 'pageUrl', 'pageTitle', 'siteSearchKeyword', + 'entryPageTitle', 'entryPageUrl', 'exitPageTitle', 'exitPageUrl', + 'outlinkUrl', 'downloadUrl' + ); $isCustomVariablePage = stripos($segmentName, 'customVariablePage') !== false; $isEventSegment = stripos($segmentName, 'event') !== false; $isContentSegment = stripos($segmentName, 'content') !== false; diff --git a/plugins/API/SegmentMetadata.php b/plugins/API/SegmentMetadata.php index 9d7e563bfb..e8a7092311 100644 --- a/plugins/API/SegmentMetadata.php +++ b/plugins/API/SegmentMetadata.php @@ -19,6 +19,10 @@ class SegmentMetadata foreach (Dimension::getAllDimensions() as $dimension) { foreach ($dimension->getSegments() as $segment) { + if ($segment->isRequiresAtLeastViewAccess()) { + $segment->setPermission($isAuthenticatedWithViewAccess); + } + $segments[] = $segment->toArray(); } } |