summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-22 13:15:47 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-22 13:15:47 +0100
commit9edec542c51899dd157cc2503b81916105f3c005 (patch)
treebc87fb34105607541bc2ac53939944f5d36ef29c /apps/files_versions
parent51d050c93515215f5053113c617a4c49c4a4474e (diff)
downloadnextcloud-server-9edec542c51899dd157cc2503b81916105f3c005.tar.gz
nextcloud-server-9edec542c51899dd157cc2503b81916105f3c005.zip
mount users home before write/read file to it, necessary to deal with external homes
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/versions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index ba9f8ba41cb..95c7991bad6 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -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');