Added possibility to get permissions for shared item with ajax call.
This commit is contained in:
parent
a2b6a92107
commit
1edab438d1
|
@ -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'])) {
|
||||
|
|
Loading…
Reference in New Issue