Make sure the share we found is for the same item

This commit is contained in:
Joas Schilling 2015-10-02 13:07:20 +02:00
parent f4885f6da3
commit 8de0773214

View file

@ -2070,7 +2070,7 @@ class Share extends Constants {
$userShareType = ($isGroupShare) ? self::$shareTypeGroupUserUnique : $shareType;
if ($sourceExists) {
if ($sourceExists && $sourceExists['item_source'] === $itemSource) {
$fileTarget = $sourceExists['file_target'];
$itemTarget = $sourceExists['item_target'];