dont use the home storage for non-existing users
This commit is contained in:
parent
e273c14540
commit
0e92a4896d
|
@ -306,10 +306,10 @@ class Filesystem {
|
||||||
|
|
||||||
$root = \OC_User::getHome($user);
|
$root = \OC_User::getHome($user);
|
||||||
|
|
||||||
if (\OC\Files\Cache\Storage::exists('local::' . $root . '/')) {
|
$userObject = \OC_User::getManager()->get($user);
|
||||||
|
if (\OC\Files\Cache\Storage::exists('local::' . $root . '/') or is_null($userObject)) {
|
||||||
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);
|
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);
|
||||||
} else {
|
} else {
|
||||||
$userObject = \OC_User::getManager()->get($user);
|
|
||||||
self::mount('\OC\Files\Storage\Home', array('user' => $userObject), $user);
|
self::mount('\OC\Files\Storage\Home', array('user' => $userObject), $user);
|
||||||
}
|
}
|
||||||
$datadir = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data");
|
$datadir = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data");
|
||||||
|
|
Loading…
Reference in New Issue