diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-08-27 16:10:37 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-08-27 16:10:37 +0200 |
commit | ead7de6bff8daa4f501a2d63dea63b9966f2bd57 (patch) | |
tree | d4cf6fc4ed16122bfb61f3ce044f428315a80be4 /lib/util.php | |
parent | b56a46bdea38eb7b767e4d6e7b0788789c3f6ad1 (diff) | |
download | nextcloud-server-ead7de6bff8daa4f501a2d63dea63b9966f2bd57.tar.gz nextcloud-server-ead7de6bff8daa4f501a2d63dea63b9966f2bd57.zip |
only mount every single homefolder when using sharing app
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php index f34831c12cb..3b2f476ada2 100755 --- a/lib/util.php +++ b/lib/util.php @@ -42,9 +42,6 @@ class OC_Util { 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); @@ -62,6 +59,12 @@ class OC_Util { } } + public static function setupFS4all(){ + foreach(OC_User::getUsers() as $user){ + OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>OC_User::getHome($singleuser)), $user); + } + } + public static function tearDownFS(){ OC_Filesystem::tearDown(); self::$fsSetup=false; |