diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-03-03 05:32:41 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-03-03 05:32:41 +0300 |
commit | 8388927a686287090c846e3255211a05df905002 (patch) | |
tree | 6a8e91a0e424084737dfb634f4598ba4c6fccef7 /core/View.php | |
parent | 89c9bdd6f1cf708d01cdc2ce9beedee1ceb4e008 (diff) |
fix various issues with user menu.
* When clicking on the anonymous user a login form was shown
* Some menu items were shown although the anonymous user has no access to it
We will now load the Help page when clicking on anonymous user name.
If the plugin Feedback is not activated we will open the API page since
this has to be activated. If Feedback plugin is disabled the anonymus user login
which will be a known issue but I think we can ignore this case.
Diffstat (limited to 'core/View.php')
-rw-r--r-- | core/View.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/View.php b/core/View.php index 27fe7569a5..cc4f25dddf 100644 --- a/core/View.php +++ b/core/View.php @@ -221,6 +221,7 @@ class View implements ViewInterface $this->url = Common::sanitizeInputValue(Url::getCurrentUrl()); $this->token_auth = Piwik::getCurrentUserTokenAuth(); $this->userHasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess(); + $this->userIsAnonymous = Piwik::isUserIsAnonymous(); $this->userIsSuperUser = Piwik::hasUserSuperUserAccess(); $this->latest_version_available = UpdateCheck::isNewestVersionAvailable(); $this->disableLink = Common::getRequestVar('disableLink', 0, 'int'); |