summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-09-03 00:02:42 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-09-05 17:22:03 +0200
commit1edab438d1c1490d5257fc2469a6bd8c46582dd1 (patch)
tree2d70c4165c852f84e3ddbf457ad59ceaece04e3a
parenta2b6a921076731a75a1a41fab0d77afd421a72fc (diff)
downloadnextcloud-server-1edab438d1c1490d5257fc2469a6bd8c46582dd1.tar.gz
nextcloud-server-1edab438d1c1490d5257fc2469a6bd8c46582dd1.zip
Added possibility to get permissions for shared item with ajax call.
-rw-r--r--core/ajax/share.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 3ace97d4d02..0629a1697f4 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'])) {