mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 21:27:15 -04:00
Don't mount shared storage unless there are shared files
This commit is contained in:
parent
e40be93e87
commit
f144be8857
1 changed files with 4 additions and 2 deletions
|
|
@ -390,8 +390,10 @@ class Shared extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
public static function setup($options) {
|
||||
$user_dir = $options['user_dir'];
|
||||
\OC\Files\Filesystem::mount('\OC\Files\Storage\Shared', array('sharedFolder' => '/Shared'), $user_dir.'/Shared/');
|
||||
if (\OCP\Share::getItemsSharedWith('file')) {
|
||||
$user_dir = $options['user_dir'];
|
||||
\OC\Files\Filesystem::mount('\OC\Files\Storage\Shared', array('sharedFolder' => '/Shared'), $user_dir.'/Shared/');
|
||||
}
|
||||
}
|
||||
|
||||
public function hasUpdated($path, $time) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue