diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-02 13:07:20 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-05 11:55:37 +0200 |
commit | 8de0773214e9217d30b480609187127358c61e5a (patch) | |
tree | 5fa25ad0bd549239e27fbff522cd67824c2f8cab /lib | |
parent | f4885f6da3048d90d44cd7e78b02e4305b0717dc (diff) | |
download | nextcloud-server-8de0773214e9217d30b480609187127358c61e5a.tar.gz nextcloud-server-8de0773214e9217d30b480609187127358c61e5a.zip |
Make sure the share we found is for the same item
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/share/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 32389f34868..b22b4b6a2ed 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -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']; |