From ddfa760a5eb87f2cb66f82279c8ec14d3373084b Mon Sep 17 00:00:00 2001 From: Michael Gapczynski <mtgap@owncloud.com> Date: Tue, 14 Aug 2012 17:06:41 -0400 Subject: [PATCH] Change to correct function call getItemSharedWithBySource() --- lib/public/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/share.php b/lib/public/share.php index 49532220a2..34da8e89a4 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -623,7 +623,7 @@ class Share { $backend = self::getBackend($itemType); // Check if this is a reshare // TODO This query has pretty bad performance if there are large collections, figure out a way to make the collection searching more efficient - if ($checkReshare = self::getItemSharedWith($itemType, $itemSource, self::FORMAT_NONE, null, true)) { + if ($checkReshare = self::getItemSharedWithBySource($itemType, $itemSource, self::FORMAT_NONE, null, true)) { if ((int)$checkReshare['permissions'] & self::PERMISSION_SHARE) { if (~(int)$checkReshare['permissions'] & $permissions) { $message = 'Sharing '.$itemSource.' failed, because the permissions exceed permissions granted to '.$uidOwner; -- GitLab