diff --git a/core/ajax/share.php b/core/ajax/share.php index 3582f8596b9..c9bee6a7ed8 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -44,11 +44,11 @@ if (isset($_POST['action'])) { } else if (isset($_GET['fetch'])) { switch ($_GET['fetch']) { case 'getItemsSharedStatuses': - $return = OCP\Share::getItemsSharedStatuses($_POST['itemType']); + $return = OCP\Share::getItemsSharedStatuses($_GET['itemType']); ($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error(); break; case 'getItemShared': - $return = OCP\Share::getItemShared($_POST['itemType'], $_POST['item']); + $return = OCP\Share::getItemShared($_GET['itemType'], $_GET['item']); ($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error(); break; case 'getShareWith':