diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-03 14:00:09 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-03 14:00:09 -0400 |
commit | 5e8ef331904d09bc02da101de807b7f7f2ceae65 (patch) | |
tree | 8eeb0f99f8fba3284a71e5d81e4d683476905ed0 /core/ajax | |
parent | 1e36e1f2cb72298cebda693aa1452ec569250757 (diff) | |
download | nextcloud-server-5e8ef331904d09bc02da101de807b7f7f2ceae65.tar.gz nextcloud-server-5e8ef331904d09bc02da101de807b7f7f2ceae65.zip |
Clean up in the dropdown for unsharing
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; |