$_POST variables should be $_GET for fetch
This commit is contained in:
parent
b5961635ea
commit
578b8a9da1
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue