Skip to content

Commit

Permalink
disable sharing check in the web client (it is redundant but fails du…
Browse files Browse the repository at this point in the history
…e to the previous commit -- File version creation fix)

Signed-off-by: Jakub Moscicki <Jakub.Moscicki@cern.ch>
  • Loading branch information
Jakub Moscicki authored and moscicki committed Feb 15, 2016
1 parent 162c933 commit 8a91eb8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/ajax/share.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -190,6 +195,8 @@
} else {
$reshare = false;
}
*/ /* end of KUBA patch */

if ($_GET['checkShares'] == 'true') {
$shares = OCP\Share::getItemShared(
$_GET['itemType'],
Expand Down

0 comments on commit 8a91eb8

Please sign in to comment.