[Pkg-owncloud-commits] [owncloud] 95/215: Make sure the owner mountpoints are setup
David Prévot
taffit at moszumanska.debian.org
Tue May 5 01:01:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 8cb40f6043c9eb7d2285954a404bd52162851beb
Author: Robin Appelman <icewind at owncloud.com>
Date: Wed Apr 15 18:18:28 2015 +0200
Make sure the owner mountpoints are setup
---
apps/files_sharing/lib/mountprovider.php | 2 ++
apps/files_sharing/lib/sharedmount.php | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/apps/files_sharing/lib/mountprovider.php b/apps/files_sharing/lib/mountprovider.php
index 0ba44ec..9f18ef7 100644
--- a/apps/files_sharing/lib/mountprovider.php
+++ b/apps/files_sharing/lib/mountprovider.php
@@ -8,6 +8,7 @@
namespace OCA\Files_Sharing;
+use OC\Files\Filesystem;
use OCA\Files_Sharing\Propagation\PropagationManager;
use OCP\Files\Config\IMountProvider;
use OCP\Files\Storage\IStorageFactory;
@@ -50,6 +51,7 @@ class MountProvider implements IMountProvider {
return $share['permissions'] > 0;
});
return array_map(function ($share) use ($user, $storageFactory) {
+ Filesystem::initMountPoints($share['uid_owner']);
// for updating etags for the share owner when we make changes to this share.
$ownerPropagator = $this->propagationManager->getChangePropagator($share['uid_owner']);
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index fbf8d05..8c473e1 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -25,6 +25,7 @@ namespace OCA\Files_Sharing;
use OC\Files\Mount\MountPoint;
use OC\Files\Mount\MoveableMount;
+use OC\Files\View;
/**
* Shared mount points can be moved by the user
@@ -55,8 +56,9 @@ class SharedMount extends MountPoint implements MoveableMount {
$mountPoint = basename($share['file_target']);
$parent = dirname($share['file_target']);
+ $view = new View('/' . $user . '/files');
- if (!\OC\Files\Filesystem::is_dir($parent)) {
+ if (!$view->is_dir($parent)) {
$parent = Helper::getShareFolder();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list