summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/public/share.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index e0488b8faf6..59dbad035aa 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -1015,8 +1015,14 @@ class Share {
continue;
}
}
- if ($item['uid_owner'] == $uidOwner && $item[$columnSource] == $itemSource) {
- return $target;
+ if ($item['uid_owner'] == $uidOwner) {
+ if ($itemType == 'file' || $itemType == 'folder') {
+ if ($item['file_source'] == \OC_FileCache::getId($itemSource)) {
+ return $target;
+ }
+ } else if ($item['item_source'] == $itemSource) {
+ return $target;
+ }
}
}
if (!isset($exclude)) {