diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-08-27 15:55:22 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-08-27 15:55:46 +0200 |
commit | b56a46bdea38eb7b767e4d6e7b0788789c3f6ad1 (patch) | |
tree | b0f50826cf63fda2eee2f1612b8c2ef879610af7 /lib | |
parent | 0f379fd28afe3d922f3d856f097366c0a3d52a8d (diff) | |
download | nextcloud-server-b56a46bdea38eb7b767e4d6e7b0788789c3f6ad1.tar.gz nextcloud-server-b56a46bdea38eb7b767e4d6e7b0788789c3f6ad1.zip |
fix filesharing for multiple data directories
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/util.php | 8 |
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); |