aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-08-27 15:55:22 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-08-27 15:55:46 +0200
commitb56a46bdea38eb7b767e4d6e7b0788789c3f6ad1 (patch)
treeb0f50826cf63fda2eee2f1612b8c2ef879610af7 /lib
parent0f379fd28afe3d922f3d856f097366c0a3d52a8d (diff)
downloadnextcloud-server-b56a46bdea38eb7b767e4d6e7b0788789c3f6ad1.tar.gz
nextcloud-server-b56a46bdea38eb7b767e4d6e7b0788789c3f6ad1.zip
fix filesharing for multiple data directories
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index a1bf214690e..f34831c12cb 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -35,12 +35,16 @@ class OC_Util {
$user_dir = '/'.$user.'/files';
$user_root = OC_User::getHome($user);
$userdirectory = $user_root . '/files';
+ OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$user_root), $user);
if( !is_dir( $userdirectory )){
mkdir( $userdirectory, 0755, true );
}
-
- //jail the user into his "home" directory
OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$user_root), $user);
+
+ //jail the user into his "home" directory
+ foreach(OC_User::getUsers() as $singleuser){
+ OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>OC_User::getHome($singleuser)), $singleuser);
+ }
OC_Filesystem::init($user_dir);
$quotaProxy=new OC_FileProxy_Quota();
OC_FileProxy::register($quotaProxy);