From 0e92a4896df11d6fd3ee4ed73dfa1cb121d66895 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 29 Oct 2013 13:12:28 +0100 Subject: [PATCH] dont use the home storage for non-existing users --- lib/private/files/filesystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index beed383108..e40502bbe6 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -306,10 +306,10 @@ class Filesystem { $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); } else { - $userObject = \OC_User::getManager()->get($user); self::mount('\OC\Files\Storage\Home', array('user' => $userObject), $user); } $datadir = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data");