Skip to content
Snippets Groups Projects
Commit 4f25f341 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #22778 from owncloud/fix-22770

untangle different user manager instances, fixes #22770
parents c590372a 82b55c4d
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ abstract class Proxy { ...@@ -61,7 +61,7 @@ abstract class Proxy {
static $userMap; static $userMap;
static $groupMap; static $groupMap;
static $db; static $db;
static $userManager; static $coreUserManager;
if(is_null($fs)) { if(is_null($fs)) {
$ocConfig = \OC::$server->getConfig(); $ocConfig = \OC::$server->getConfig();
$fs = new FilesystemHelper(); $fs = new FilesystemHelper();
...@@ -70,10 +70,10 @@ abstract class Proxy { ...@@ -70,10 +70,10 @@ abstract class Proxy {
$db = \OC::$server->getDatabaseConnection(); $db = \OC::$server->getDatabaseConnection();
$userMap = new UserMapping($db); $userMap = new UserMapping($db);
$groupMap = new GroupMapping($db); $groupMap = new GroupMapping($db);
$userManager = \OC::$server->getUserManager(); $coreUserManager = \OC::$server->getUserManager();
} }
$userManager = $userManager =
new user\Manager($ocConfig, $fs, $log, $avatarM, new \OCP\Image(), $db, $userManager); new user\Manager($ocConfig, $fs, $log, $avatarM, new \OCP\Image(), $db, $coreUserManager);
$connector = new Connection($this->ldap, $configPrefix); $connector = new Connection($this->ldap, $configPrefix);
$access = new Access($connector, $this->ldap, $userManager); $access = new Access($connector, $this->ldap, $userManager);
$access->setUserMapper($userMap); $access->setUserMapper($userMap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment