summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-01-20 00:35:47 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-01-26 16:54:50 +0100
commit66f0db30b2ba97cbe91031b42740dabddc659f0d (patch)
tree87a3581924531ecb6ba40f7eee1ba6bf35c4ec81 /apps/files_sharing/api
parent836b80919feb3e32ab54d605385c32a5da053cdc (diff)
downloadnextcloud-server-66f0db30b2ba97cbe91031b42740dabddc659f0d.tar.gz
nextcloud-server-66f0db30b2ba97cbe91031b42740dabddc659f0d.zip
use uid provided by setupfs hook to mount server2server shares, otherwise mount will fail for public link shares
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r--apps/files_sharing/api/server2server.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/api/server2server.php b/apps/files_sharing/api/server2server.php
index f78d64caa73..7dce0df7d83 100644
--- a/apps/files_sharing/api/server2server.php
+++ b/apps/files_sharing/api/server2server.php
@@ -60,8 +60,9 @@ class Server2Server {
\OC::$server->getDatabaseConnection(),
\OC\Files\Filesystem::getMountManager(),
\OC\Files\Filesystem::getLoader(),
- \OC::$server->getUserSession(),
- \OC::$server->getHTTPHelper());
+ \OC::$server->getHTTPHelper(),
+ $shareWith
+ );
$name = \OCP\Files::buildNotExistingFileName('/', $name);