]> source.dussan.org Git - nextcloud-server.git/commitdiff
we are sharing the same file again if item_source of the already shared file and...
authorBjörn Schießle <schiessle@owncloud.com>
Tue, 2 Oct 2012 19:37:10 +0000 (21:37 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Tue, 2 Oct 2012 19:37:10 +0000 (21:37 +0200)
lib/public/share.php

index 2f06dcb86414335fefe0947748a2b8c01cdb85e0..42c4db615217e7135a9d77db93a562ee3ee31a38 100644 (file)
@@ -1014,6 +1014,9 @@ class Share {
                                                                continue;
                                                        }
                                                }
+                                               if ($item['uid_owner'] == $uidOwner && $item['item_source'] == \OC_FileCache::getId($itemSource) ) {
+                                                       return $target;\r
+                                               }
                                        }
                                        if (!isset($exclude)) {
                                                $exclude = array();