commit
0f9b22107b
|
@ -255,7 +255,7 @@ class Server extends SimpleContainer implements IServerContainer {
|
||||||
* @return \OCP\Files\Folder
|
* @return \OCP\Files\Folder
|
||||||
*/
|
*/
|
||||||
function getUserFolder() {
|
function getUserFolder() {
|
||||||
$dir = '/' . \OCP\User::getUser();
|
$dir = '/' . $this->getUserSession()->getUser()->getUID();
|
||||||
$root = $this->getRootFolder();
|
$root = $this->getRootFolder();
|
||||||
$folder = null;
|
$folder = null;
|
||||||
|
|
||||||
|
|
|
@ -52,14 +52,14 @@ interface IUserSession {
|
||||||
/**
|
/**
|
||||||
* set the currently active user
|
* set the currently active user
|
||||||
*
|
*
|
||||||
* @param \OCP\User|null $user
|
* @param \OCP\IUser|null $user
|
||||||
*/
|
*/
|
||||||
public function setUser($user);
|
public function setUser($user);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the current active user
|
* get the current active user
|
||||||
*
|
*
|
||||||
* @return \OCP\User
|
* @return \OCP\IUser
|
||||||
*/
|
*/
|
||||||
public function getUser();
|
public function getUser();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue