diff --git a/core/ajax/share.php b/core/ajax/share.php index 3907cd43b0a1..7b7001b06082 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -179,6 +179,11 @@ && isset($_GET['itemSource']) && isset($_GET['checkReshare']) && isset($_GET['checkShares'])) { + + $reshare = false; + + /* KUBA: disable the reshare check altogether because we do not allow re-sharing in cernbox so this call is redundant*/ + /* if ($_GET['checkReshare'] == 'true') { $reshare = OCP\Share::getItemSharedWithBySource( $_GET['itemType'], @@ -190,6 +195,8 @@ } else { $reshare = false; } + */ /* end of KUBA patch */ + if ($_GET['checkShares'] == 'true') { $shares = OCP\Share::getItemShared( $_GET['itemType'],