summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-10 19:09:58 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-10 19:09:58 -0500
commit8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3 (patch)
tree33c270d8946a00c41b00e80ae4c233d11a849255 /lib
parentc6985d6cd4da69715773b3d4eb65cf17977c8cc4 (diff)
downloadnextcloud-server-8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3.tar.gz
nextcloud-server-8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3.zip
Proper fix for shared links
Diffstat (limited to 'lib')
-rw-r--r--lib/files/filesystem.php4
-rwxr-xr-xlib/util.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 71bf3d8708d..a0c3c4b9b75 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -190,14 +190,14 @@ class Filesystem {
}
}
- static public function init($root) {
+ static public function init($user, $root) {
if (self::$defaultInstance) {
return false;
}
self::$defaultInstance = new View($root);
//load custom mount config
- self::initMountPoints();
+ self::initMountPoints($user);
self::$loaded = true;
diff --git a/lib/util.php b/lib/util.php
index a5fe4cb175a..54a3f634041 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -51,7 +51,7 @@ class OC_Util {
mkdir( $userdirectory, 0755, true );
}
//jail the user into his "home" directory
- \OC\Files\Filesystem::init($user_dir);
+ \OC\Files\Filesystem::init($user, $user_dir);
$quotaProxy=new OC_FileProxy_Quota();
$fileOperationProxy = new OC_FileProxy_FileOperations();