diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-10 19:09:58 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-10 19:09:58 -0500 |
commit | 8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3 (patch) | |
tree | 33c270d8946a00c41b00e80ae4c233d11a849255 /lib | |
parent | c6985d6cd4da69715773b3d4eb65cf17977c8cc4 (diff) | |
download | nextcloud-server-8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3.tar.gz nextcloud-server-8e3b8c7f47ab12e1612d3fa025e6b9eb7f5ffdb3.zip |
Proper fix for shared links
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/filesystem.php | 4 | ||||
-rwxr-xr-x | lib/util.php | 2 |
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(); |