fix fallback overwriting result of getHome
This commit is contained in:
parent
366d75e947
commit
f23b7a262f
|
@ -141,9 +141,10 @@ class User {
|
||||||
if (!$this->home) {
|
if (!$this->home) {
|
||||||
if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME) and $home = $this->backend->getHome($this->uid)) {
|
if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME) and $home = $this->backend->getHome($this->uid)) {
|
||||||
$this->home = $home;
|
$this->home = $home;
|
||||||
}
|
} else {
|
||||||
$this->home = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/' . $this->uid; //TODO switch to Config object once implemented
|
$this->home = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/' . $this->uid; //TODO switch to Config object once implemented
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $this->home;
|
return $this->home;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue