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:
authormattab <matthieu.aubry@gmail.com>2014-02-05 02:56:54 +0400
committermattab <matthieu.aubry@gmail.com>2014-02-05 02:56:54 +0400
commit2b4af078661d0d658d265e16aa6f81a4274f3055 (patch)
treeaea6d165d5decf7d88bba0426ead0164fa577d22
parent2fee6fa5e7db6b4015a2ec005fd887713e0d5838 (diff)
Make UsersManager not fail, if the current user is set by another Login plugin and UsersManager don't know about this user.
-rw-r--r--plugins/UsersManager/API.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index b1db4daaf7..70eb348de9 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -479,6 +479,10 @@ class API extends \Piwik\Plugin\API
return true;
}
+ if ($userLogin == Piwik::getCurrentUserLogin()) {
+ return true;
+ }
+
Piwik::checkUserIsNotAnonymous();
Piwik::checkUserHasSomeViewAccess();