Skip to content

Commit

Permalink
[stable9.1] Fix issues where some user settings cannot be loaded when…
Browse files Browse the repository at this point in the history
… the user id differs in case sensitivity - fixes #25684 (#25686)
  • Loading branch information
DeepDiver1975 committed Aug 22, 2016
1 parent 8003c16 commit bbfa0fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/private/User/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ protected function getUserObject($uid, $backend, $cacheUser = true) {
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;
Expand Down

0 comments on commit bbfa0fe

Please sign in to comment.