Skip to content

Commit

Permalink
Do not show version number to anonymous user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Jun 17, 2014
1 parent c764c5e commit c87a120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/API/API.php
Expand Up @@ -54,6 +54,7 @@ class API extends \Piwik\Plugin\API
public function getPiwikVersion()
{
Piwik::checkUserHasSomeViewAccess();
Piwik::checkUserIsNotAnonymous();
return Version::VERSION;
}

Expand Down
1 change: 1 addition & 0 deletions plugins/ExampleAPI/API.php
Expand Up @@ -28,6 +28,7 @@ class API extends \Piwik\Plugin\API
public function getPiwikVersion()
{
Piwik::checkUserHasSomeViewAccess();
Piwik::checkUserIsNotAnonymous();
return Version::VERSION;
}

Expand Down

0 comments on commit c87a120

Please sign in to comment.