aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-14 17:06:41 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-14 17:06:41 -0400
commitddfa760a5eb87f2cb66f82279c8ec14d3373084b (patch)
treee93db2213aaf70b59f25a8f0c91f574fe210a8c0 /lib
parentb440dfc67eb8fb90d28b7de8628f32646be3d2c0 (diff)
downloadnextcloud-server-ddfa760a5eb87f2cb66f82279c8ec14d3373084b.tar.gz
nextcloud-server-ddfa760a5eb87f2cb66f82279c8ec14d3373084b.zip
Change to correct function call getItemSharedWithBySource()
Diffstat (limited to 'lib')
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 49532220a2b..34da8e89a4d 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;