From f93dcc5d77ca3f27e4b40903ac602fdc787521d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 8 Nov 2013 11:24:19 +0100 Subject: [PATCH] the filesystem has to be initialized once we know the user --- lib/private/api.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/private/api.php b/lib/private/api.php index 7e69a6a77d..eac4a825e0 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -245,6 +245,10 @@ class OC_API { $return = OC_User::login($authUser, $authPw); if ($return === true) { self::$logoutRequired = true; + + // initialize the user's filesystem + \OC_Util::setUpFS(\OC_User::getUser()); + return $authUser; } @@ -252,6 +256,10 @@ class OC_API { $loggedIn = OC_User::isLoggedIn(); $ocsApiRequest = isset($_SERVER['HTTP_OCS_APIREQUEST']) ? $_SERVER['HTTP_OCS_APIREQUEST'] === 'true' : false; if ($loggedIn === true && $ocsApiRequest) { + + // initialize the user's filesystem + \OC_Util::setUpFS(\OC_User::getUser()); + return OC_User::getUser(); }