Skip to content
Snippets Groups Projects
Commit f144be88 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Don't mount shared storage unless there are shared files

parent e40be93e
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment