diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-17 06:57:43 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-17 06:57:43 +0400 |
commit | c87a1209d51b344032628e512db3f9fb3331d74f (patch) | |
tree | d53566ea5f2fd0c65226ed7e06e0fbf636ba0e8a /plugins/ExampleAPI | |
parent | c764c5e1c3c57e1fa3255f285cd23e2e1744bb7a (diff) |
Do not show version number to anonymous user.
Diffstat (limited to 'plugins/ExampleAPI')
-rw-r--r-- | plugins/ExampleAPI/API.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ExampleAPI/API.php b/plugins/ExampleAPI/API.php index 27dc2f59aa..f7cb0424ce 100644 --- a/plugins/ExampleAPI/API.php +++ b/plugins/ExampleAPI/API.php @@ -28,6 +28,7 @@ class API extends \Piwik\Plugin\API public function getPiwikVersion() { Piwik::checkUserHasSomeViewAccess(); + Piwik::checkUserIsNotAnonymous(); return Version::VERSION; } |