summaryrefslogtreecommitdiffstats
path: root/lib/private/share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-04 13:25:24 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-04 19:19:10 +0100
commit169874957a155bc01f5e573350a16f60ab586e0c (patch)
tree888b33cf1c20b3a2193630b77970e87e56606850 /lib/private/share20
parentb57aac0a89c55fb6b227a4271d6e0869f61a8924 (diff)
downloadnextcloud-server-169874957a155bc01f5e573350a16f60ab586e0c.tar.gz
nextcloud-server-169874957a155bc01f5e573350a16f60ab586e0c.zip
Path should be relative
Diffstat (limited to 'lib/private/share20')
-rw-r--r--lib/private/share20/manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index 2a350f02d6a..d65fb927f9b 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -77,6 +77,7 @@ class Manager implements IManager {
* @param IL10N $l
* @param IProviderFactory $factory
* @param IUserManager $userManager
+ * @param IRootFolder $rootFolder
*/
public function __construct(
ILogger $logger,
@@ -614,6 +615,7 @@ class Manager implements IManager {
}
if ($share->getPermissions() !== $originalShare->getPermissions()) {
+ $userFolder = $this->rootFolder->getUserFolder($share->getShareOwner());
\OC_Hook::emit('OCP\Share', 'post_update_permissions', array(
'itemType' => $share->getNode() instanceof \OCP\Files\File ? 'file' : 'folder',
'itemSource' => $share->getNode()->getId(),
@@ -621,7 +623,7 @@ class Manager implements IManager {
'shareWith' => $share->getSharedWith(),
'uidOwner' => $share->getSharedBy(),
'permissions' => $share->getPermissions(),
- 'path' => $share->getNode()->getPath(),
+ 'path' => $userFolder->getRelativePath($share->getNode()->getPath()),
));
}