diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-09-13 12:27:21 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-09-13 12:27:21 +0300 |
commit | eb135d879a64ecbd33554dd51b5788f8065e037d (patch) | |
tree | bb882a979d8de52a7294ea95f318fadef97c617d /plugins/SitesManager/Menu.php | |
parent | 703ed9402e4aada544ec94e789021df86575ad15 (diff) |
Various platform tweaks (#14832)
* platform tweaks
* prevent failing if loaded twice
* Update Config.php
* Update PluginList.php
* Update Config.php
* Update IniFileChain.php
* Update Config.php
* Update Config.php
* allow configure different path for custom logo
* only show install plugin button when activated
* allow disable users and sites management
* do not allow calling set super user access
* Update PluginList.php
* Update Config.php
* Update global.ini.php
* Update Config.php
* Update global.ini.php
Diffstat (limited to 'plugins/SitesManager/Menu.php')
-rw-r--r-- | plugins/SitesManager/Menu.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SitesManager/Menu.php b/plugins/SitesManager/Menu.php index d37353cada..f8b94dc97a 100644 --- a/plugins/SitesManager/Menu.php +++ b/plugins/SitesManager/Menu.php @@ -28,7 +28,7 @@ class Menu extends \Piwik\Plugin\Menu $menu->addMeasurableItem('General_Settings', $this->urlForAction('globalSettings'), $order = 11); } - if (Piwik::isUserHasSomeAdminAccess()) { + if (Piwik::isUserHasSomeAdminAccess() && SitesManager::isSitesAdminEnabled()) { $menu->addMeasurableItem('SitesManager_MenuManage', $this->urlForAction('index'), $order = 10); $type = $this->getFirstTypeIfOnlyOneIsInUse(); |