diff options
Diffstat (limited to 'plugins/MobileMessaging/Menu.php')
-rw-r--r-- | plugins/MobileMessaging/Menu.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/MobileMessaging/Menu.php b/plugins/MobileMessaging/Menu.php index 3c12293ac3..cd5e16a56e 100644 --- a/plugins/MobileMessaging/Menu.php +++ b/plugins/MobileMessaging/Menu.php @@ -15,12 +15,14 @@ class Menu extends \Piwik\Plugin\Menu { public function configureAdminMenu(MenuAdmin $menu) { - if (Piwik::hasUserSuperUserAccess()) { - $menu->addManageItem('MobileMessaging_SettingsMenu', $this->urlForAction('index'), $order = 35); - } + $title = 'MobileMessaging_SettingsMenu'; + $url = $this->urlForAction('index'); + $order = 35; - if (!Piwik::isUserIsAnonymous()) { - $menu->addPersonalItem('MobileMessaging_SettingsMenu', $this->urlForAction('userSettings'), $order = 12); + if (Piwik::hasUserSuperUserAccess()) { + $menu->addSystemItem($title, $url, $order); + } else if (!Piwik::isUserIsAnonymous()) { + $menu->addPersonalItem($title, $url, $order); } } } |