diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-02-05 02:56:54 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-02-05 02:56:54 +0400 |
commit | 2b4af078661d0d658d265e16aa6f81a4274f3055 (patch) | |
tree | aea6d165d5decf7d88bba0426ead0164fa577d22 | |
parent | 2fee6fa5e7db6b4015a2ec005fd887713e0d5838 (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.php | 4 |
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(); |