From 1edab438d1c1490d5257fc2469a6bd8c46582dd1 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 3 Sep 2012 00:02:42 +0200 Subject: [PATCH] Added possibility to get permissions for shared item with ajax call. --- core/ajax/share.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/ajax/share.php b/core/ajax/share.php index 3ace97d4d0..0629a1697f 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -78,6 +78,10 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo } OC_JSON::success(array('data' => array('reshare' => $reshare, 'shares' => $shares))); } + if (isset($_GET['itemType']) && isset($_GET['itemSource']) && isset($_GET['getPermissions'])) { + $info = OCP\Share::getItemSharedWithBySource($_GET['itemType'], $_GET['itemSource']); + OC_JSON::success(array('data' => array('info' => $info))); + } break; case 'getShareWith': if (isset($_GET['search'])) {