diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2014-01-23 06:03:00 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2014-01-23 06:03:00 +0400 |
commit | df54712a053b8ea326b2389a245de2a4b35fa4f7 (patch) | |
tree | c742dee2c363872c1e2411b3ae0e89dcb335df29 /core/Menu | |
parent | 81e7f870124d2356c1784355e54fb4716901dfec (diff) |
refs #4564 introducing some more new methods for has superuser access. Old methods will still work but are marked as deprecated and they will be removed in a future release
Diffstat (limited to 'core/Menu')
-rw-r--r-- | core/Menu/MenuAdmin.php | 2 | ||||
-rw-r--r-- | core/Menu/MenuMain.php | 2 | ||||
-rw-r--r-- | core/Menu/MenuTop.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/Menu/MenuAdmin.php b/core/Menu/MenuAdmin.php index c5c97c8265..b303bd63c0 100644 --- a/core/Menu/MenuAdmin.php +++ b/core/Menu/MenuAdmin.php @@ -76,7 +76,7 @@ class MenuAdmin extends MenuAbstract * 'MenuName', * 'SubmenuName', * array('module' => 'MyPlugin', 'action' => 'index'), - * $showOnlyIf = Piwik::isUserIsSuperUser(), + * $showOnlyIf = Piwik::hasUserSuperUserAccess(), * $order = 6 * ); * } diff --git a/core/Menu/MenuMain.php b/core/Menu/MenuMain.php index 01e669476c..71d1f74790 100644 --- a/core/Menu/MenuMain.php +++ b/core/Menu/MenuMain.php @@ -82,7 +82,7 @@ class MenuMain extends MenuAbstract * 'CustomMenuName', * 'CustomSubmenuName', * array('module' => 'MyPlugin', 'action' => 'index'), - * $showOnlyIf = Piwik::isUserIsSuperUser(), + * $showOnlyIf = Piwik::hasUserSuperUserAccess(), * $order = 6 * ); * } diff --git a/core/Menu/MenuTop.php b/core/Menu/MenuTop.php index 5e6ea16375..345e504323 100644 --- a/core/Menu/MenuTop.php +++ b/core/Menu/MenuTop.php @@ -112,7 +112,7 @@ class MenuTop extends MenuAbstract * MenuTop::addEntry( * 'TopMenuName', * array('module' => 'MyPlugin', 'action' => 'index'), - * $showOnlyIf = Piwik::isUserIsSuperUser(), + * $showOnlyIf = Piwik::hasUserSuperUserAccess(), * $order = 6 * ); * } |