use UserSession service to resolve user id
This commit is contained in:
parent
b3106c321c
commit
818929274d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue