Skip to content
Snippets Groups Projects
Commit c0443a2f authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

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]
parents 51d050c9 9edec542
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment