Merge pull request #1849 from owncloud/mount_users_home

mount users home before write/read file to it, necessary to deal with external homes [master]
This commit is contained in:
blizzz 2013-02-22 04:54:25 -08:00
commit c0443a2f0d
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Storage {
private static function getUidAndFilename($filename) {
$uid = \OC\Files\Filesystem::getOwner($filename);
\OC\Files\Filesystem::initMountPoints($uid);
if ( $uid != \OCP\User::getUser() ) {
$info = \OC\Files\Filesystem::getFileInfo($filename);
$ownerView = new \OC\Files\View('/'.$uid.'/files');