diff options
Diffstat (limited to 'plugins/ExampleAPI/API.php')
-rw-r--r-- | plugins/ExampleAPI/API.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ExampleAPI/API.php b/plugins/ExampleAPI/API.php index 8a6d19af96..ca052d42aa 100644 --- a/plugins/ExampleAPI/API.php +++ b/plugins/ExampleAPI/API.php @@ -20,7 +20,7 @@ * * @package Piwik_ExamplePlugin */ -class Piwik_ExampleAPI_API extends Piwik_Apiable +class Piwik_ExampleAPI_API { static private $instance = null; static public function getInstance() @@ -35,6 +35,7 @@ class Piwik_ExampleAPI_API extends Piwik_Apiable public function getPiwikVersion() { + Piwik::checkUserHasSomeViewAccess(); return Piwik_Version::VERSION; } |