summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-24 10:43:42 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-24 15:12:16 -0400
commitfedb3641f9cdd0358951e6b794f5d3cb6d6465cb (patch)
tree2540028ce0730e3af4a5512092ba332b90ad0622 /core/ajax
parentee04b626b4c6c3a74bd0011be921660b5b8e6a66 (diff)
downloadnextcloud-server-fedb3641f9cdd0358951e6b794f5d3cb6d6465cb.tar.gz
nextcloud-server-fedb3641f9cdd0358951e6b794f5d3cb6d6465cb.zip
Determine if reshare needs to be checked
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 04294a36ac0..806ca9fb98f 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -56,9 +56,13 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
}
break;
case 'getItem':
- if (isset($_GET['itemType']) && isset($_GET['itemSource']) && isset($_GET['checkShares'])) {
- $reshare = OCP\Share::getItemSharedWithBySource($_GET['itemType'], $_GET['itemSource'], OCP\Share::FORMAT_NONE, null, true);
- if ($_GET['checkShares'] == "true") {
+ if (isset($_GET['itemType']) && isset($_GET['itemSource']) && isset($_GET['checkReshare']) && isset($_GET['checkShares'])) {
+ if ($_GET['checkReshare'] == 'true') {
+ $reshare = OCP\Share::getItemSharedWithBySource($_GET['itemType'], $_GET['itemSource'], OCP\Share::FORMAT_NONE, null, true);
+ } else {
+ $reshare = false;
+ }
+ if ($_GET['checkShares'] == 'true') {
$shares = OCP\Share::getItemShared($_GET['itemType'], $_GET['itemSource']);
} else {
$shares = false;