use UserSession service to resolve user id

This commit is contained in:
Jörn Friedrich Dreyer 2014-07-15 17:42:17 +02:00
parent b3106c321c
commit 818929274d
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ class Server extends SimpleContainer implements IServerContainer {
* @return \OCP\Files\Folder
*/
function getUserFolder() {
$dir = '/' . \OCP\User::getUser();
$dir = '/' . $this->getUserSession()->getUser()->getUID();
$root = $this->getRootFolder();
$folder = null;