diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-15 18:18:28 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-27 14:07:16 +0200 |
commit | 8cb40f6043c9eb7d2285954a404bd52162851beb (patch) | |
tree | e05e417eb497b2217b40b7caaf92106f1ba7607c /apps/files_sharing/lib/sharedmount.php | |
parent | d5434c9c4e005ff0407d6adddbc2a81dbedd7783 (diff) | |
download | nextcloud-server-8cb40f6043c9eb7d2285954a404bd52162851beb.tar.gz nextcloud-server-8cb40f6043c9eb7d2285954a404bd52162851beb.zip |
Make sure the owner mountpoints are setup
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r-- | apps/files_sharing/lib/sharedmount.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php index fbf8d05c1b2..8c473e1f1c2 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(); } |