|
|
|
@ -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': |
|
|
|
|