mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Fix issues where some user settings cannot be loaded when the user id differs in case sensitivity
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6902fb578f
commit
e12e27fa65
1 changed files with 10 additions and 0 deletions
|
|
@ -155,6 +155,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue