]> source.dussan.org Git - nextcloud-server.git/commitdiff
only mount every single homefolder when using sharing app
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 27 Aug 2012 14:10:37 +0000 (16:10 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 27 Aug 2012 14:10:37 +0000 (16:10 +0200)
apps/files_sharing/lib/sharedstorage.php
lib/util.php

index 527cec0afe3d25331ff4dd8bccfbf1ccde15843a..a3a8750d2737043534f8013a9fa7a88fed5e3de7 100644 (file)
@@ -30,6 +30,7 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
        
        public function __construct($arguments) {
                $this->sharedFolder = $arguments['sharedFolder'];
+               OC_Util::setupFS4all();
        }
 
        /**
index f34831c12cbf1f269566bb3c922cabece3d4e4b6..3b2f476ada26d4983fcfd63476574ef5bddb7410 100755 (executable)
@@ -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;