Skip to content
Snippets Groups Projects
Commit 1edab438 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Added possibility to get permissions for shared item with ajax call.

parent a2b6a921
No related branches found
No related tags found
No related merge requests found
......@@ -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'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment