aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api/ocssharewrapper.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-11-24 10:16:02 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-11-24 10:26:36 +0100
commit8d309767d7a48a7fe1dd23fd79bc827c29f94931 (patch)
treed228305d20eb02f1e3c3cac0fc7fa1bcf364a2cc /apps/files_sharing/api/ocssharewrapper.php
parent85976b72937eae0e99d974551baf3aa96fa8d041 (diff)
downloadnextcloud-server-8d309767d7a48a7fe1dd23fd79bc827c29f94931.tar.gz
nextcloud-server-8d309767d7a48a7fe1dd23fd79bc827c29f94931.zip
[Sharing 2.0] Use the rootfolder to get the path of a share
We need to use the rootfolder here since we also other people than the shareOwner can request a share.
Diffstat (limited to 'apps/files_sharing/api/ocssharewrapper.php')
-rw-r--r--apps/files_sharing/api/ocssharewrapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/api/ocssharewrapper.php b/apps/files_sharing/api/ocssharewrapper.php
index 2a2c16da1f3..ca04c656c28 100644
--- a/apps/files_sharing/api/ocssharewrapper.php
+++ b/apps/files_sharing/api/ocssharewrapper.php
@@ -40,7 +40,7 @@ class OCSShareWrapper {
\OC::$server->getGroupManager(),
\OC::$server->getUserManager(),
\OC::$server->getRequest(),
- \OC::$server->getUserFolder(),
+ \OC::$server->getRootFolder(),
\OC::$server->getURLGenerator(),
\OC::$server->getUserSession()->getUser());
}