diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-02 19:20:34 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-03 11:37:19 -0500 |
commit | f144be8857e3356495acefca787637b5672f73ef (patch) | |
tree | b40b7c9ec691a526912585c84c63dc7533b1eb60 /apps/files_sharing | |
parent | e40be93e87e5a401039f0ce1a3e47e9a44635936 (diff) | |
download | nextcloud-server-f144be8857e3356495acefca787637b5672f73ef.tar.gz nextcloud-server-f144be8857e3356495acefca787637b5672f73ef.zip |
Don't mount shared storage unless there are shared files
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 3a5755c01fc..24096e0c10c 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -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) { |