Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-09-30 04:19:58 +0400
committerdiosmosis <benaka@piwik.pro>2014-09-30 16:37:37 +0400
commit8e82428416bd17832b5f059ae8b6933f301c4719 (patch)
treed2900459458e5107c24c86e5c6fcd5f03555fbe4 /core/Piwik.php
parent0401d7e82714a770a4835b1ad4a90a42fbed0f15 (diff)
Deprecating Piwik::setUserHasSuperUserAccess() and switching to Access::doAsSuperUser().
Diffstat (limited to 'core/Piwik.php')
-rw-r--r--core/Piwik.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index ea49b72675..16f50f387f 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -427,7 +427,10 @@ class Piwik
* Helper method user to set the current as superuser.
* This should be used with great care as this gives the user all permissions.
*
+ * This method is deprecated, use {@link Access::doAsSuperUser()} instead.
+ *
* @param bool $bool true to set current user as Super User
+ * @deprecated
*/
public static function setUserHasSuperUserAccess($bool = true)
{