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:
authorThomas Steur <thomas.steur@gmail.com>2014-01-23 05:26:57 +0400
committerThomas Steur <thomas.steur@gmail.com>2014-01-23 05:26:57 +0400
commit81e7f870124d2356c1784355e54fb4716901dfec (patch)
tree0162170ba0d4e5d3e206897eeed50fd76285a2a2 /core/Settings
parent0c0ab33efd14b4223ef56f32c46879160f3ef7d5 (diff)
refs #4564 introducing new methods to make user a user 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/Settings')
-rw-r--r--core/Settings/SystemSetting.php2
-rw-r--r--core/Settings/UserSetting.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Settings/SystemSetting.php b/core/Settings/SystemSetting.php
index 50e79e11c6..3084ba3607 100644
--- a/core/Settings/SystemSetting.php
+++ b/core/Settings/SystemSetting.php
@@ -36,7 +36,7 @@ class SystemSetting extends Setting
{
parent::__construct($name, $title);
- $this->displayedForCurrentUser = Piwik::isUserIsSuperUser();
+ $this->displayedForCurrentUser = Piwik::hasUserSuperUserAccess();
}
/**
diff --git a/core/Settings/UserSetting.php b/core/Settings/UserSetting.php
index 696d940b42..30cf015b43 100644
--- a/core/Settings/UserSetting.php
+++ b/core/Settings/UserSetting.php
@@ -80,7 +80,7 @@ class UserSetting extends Setting
*/
public function setUserLogin($userLogin)
{
- if (!empty($userLogin) && !Piwik::isUserIsSuperUserOrTheUser($userLogin)) {
+ if (!empty($userLogin) && !Piwik::hasUserSuperUserAccessOrIsTheUser($userLogin)) {
throw new \Exception('You do not have the permission to read the settings of a different user');
}