From 8a91eb8ab92e127698a290b6fcbb827868e1a5a5 Mon Sep 17 00:00:00 2001 From: Jakub Moscicki Date: Mon, 15 Feb 2016 18:11:22 +0100 Subject: [PATCH] disable sharing check in the web client (it is redundant but fails due to the previous commit -- File version creation fix) Signed-off-by: Jakub Moscicki --- core/ajax/share.php | 7 +++++++ 1 file changed, 7 insertions(+) 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'],