From 5e8ef331904d09bc02da101de807b7f7f2ceae65 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 3 Jul 2012 14:00:09 -0400 Subject: Clean up in the dropdown for unsharing --- core/ajax/share.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/ajax') diff --git a/core/ajax/share.php b/core/ajax/share.php index b1b619e6220..f9ab91b9d2b 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -47,7 +47,8 @@ if (isset($_POST['action'])) { $return = OCP\Share::getItemsShared($_GET['itemType'], OCP\Share::FORMAT_STATUSES); ($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error(); break; - case 'getItemShared': + case 'getItem': + // TODO Check if the item was shared to the current user $return = OCP\Share::getItemShared($_GET['itemType'], $_GET['item']); ($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error(); break; -- cgit v1.2.3