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

remotes/origin/stable45
Michael Gapczynski 14 years ago
parent 5eaf95eedd
commit 5f462ec6f7
  1. 10
      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)) {

Loading…
Cancel
Save