summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-07-15 17:42:17 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-07-15 17:42:17 +0200
commit818929274de5182a9cd289f503329df05bb4b16a (patch)
treeb7d88c361cc75d55e26a9958afdc4f33da9b0e80 /lib/private/server.php
parentb3106c321cea04947d15a21341f3700877a84a6d (diff)
downloadnextcloud-server-818929274de5182a9cd289f503329df05bb4b16a.tar.gz
nextcloud-server-818929274de5182a9cd289f503329df05bb4b16a.zip
use UserSession service to resolve user id
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index da705863078..3237ce30ccf 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -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;