Merge pull request #1142 from nextcloud/fix-case-sensitive-settings

Fix issues where some user settings cannot be loaded when the user id…
This commit is contained in:
Roeland Jago Douma 2016-08-29 19:56:35 +02:00 committed by GitHub
commit 7c7f862712
1 changed files with 10 additions and 0 deletions

View File

@ -157,6 +157,16 @@ class Manager extends PublicEmitter implements IUserManager {
return $this->cachedUsers[$uid];
}
if (method_exists($backend, 'loginName2UserName')) {
$loginName = $backend->loginName2UserName($uid);
if ($loginName !== false) {
$uid = $loginName;
}
if (isset($this->cachedUsers[$uid])) {
return $this->cachedUsers[$uid];
}
}
$user = new User($uid, $backend, $this, $this->config);
if ($cacheUser) {
$this->cachedUsers[$uid] = $user;