Fix - "Correct checking item source for share from same owner when generating item target"

This commit is contained in:
Michael Gapczynski 2012-10-06 18:13:11 -04:00
parent 5eaf95eedd
commit 5f462ec6f7

View file

@ -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)) {