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>2015-12-10 03:47:03 +0300
committermattab <matthieu.aubry@gmail.com>2015-12-21 12:11:33 +0300
commit69bc09673c96ac6317df541df12e86584aaa1761 (patch)
tree8fa2246957a18b7b2e0f1ea4c226cebbc1c6570b /core/Piwik.php
parent401489f1056119ae4c74b35f2c5040d60e800714 (diff)
fixes #4314 Don't let "admin" users see all other users in Piwik
Diffstat (limited to 'core/Piwik.php')
-rw-r--r--core/Piwik.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index 9545cff6c8..89b1d6ce87 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -394,12 +394,7 @@ class Piwik
*/
public static function isUserHasSomeAdminAccess()
{
- try {
- self::checkUserHasSomeAdminAccess();
- return true;
- } catch (Exception $e) {
- return false;
- }
+ return Access::getInstance()->isUserHasSomeAdminAccess();
}
/**