only mount every single homefolder when using sharing app
This commit is contained in:
parent
b56a46bdea
commit
ead7de6bff
2 changed files with 7 additions and 3 deletions
|
@ -30,6 +30,7 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
|
||||||
|
|
||||||
public function __construct($arguments) {
|
public function __construct($arguments) {
|
||||||
$this->sharedFolder = $arguments['sharedFolder'];
|
$this->sharedFolder = $arguments['sharedFolder'];
|
||||||
|
OC_Util::setupFS4all();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,9 +42,6 @@ class OC_Util {
|
||||||
OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$user_root), $user);
|
OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$user_root), $user);
|
||||||
|
|
||||||
//jail the user into his "home" directory
|
//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);
|
OC_Filesystem::init($user_dir);
|
||||||
$quotaProxy=new OC_FileProxy_Quota();
|
$quotaProxy=new OC_FileProxy_Quota();
|
||||||
OC_FileProxy::register($quotaProxy);
|
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(){
|
public static function tearDownFS(){
|
||||||
OC_Filesystem::tearDown();
|
OC_Filesystem::tearDown();
|
||||||
self::$fsSetup=false;
|
self::$fsSetup=false;
|
||||||
|
|
Loading…
Reference in a new issue