Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/API/Controller.php')
-rw-r--r--plugins/API/Controller.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php
index 25bfb7212d..41234d5c9a 100644
--- a/plugins/API/Controller.php
+++ b/plugins/API/Controller.php
@@ -49,6 +49,8 @@ class Controller extends \Piwik\Plugin\Controller
public function listAllMethods()
{
+ Piwik::checkUserHasSomeViewAccess();
+
$ApiDocumentation = new DocumentationGenerator();
$prefixUrls = Common::getRequestVar('prefixUrl', 'http://demo.piwik.org/', 'string');
if (!UrlHelper::isLookLikeUrl($prefixUrls)) {