mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Remove the method getItemsSharedStatuses, it is easy enough to just pass the format instead
This commit is contained in:
parent
3e8a34f906
commit
dd56416a39
2 changed files with 1 additions and 11 deletions
|
|
@ -44,7 +44,7 @@ if (isset($_POST['action'])) {
|
|||
} else if (isset($_GET['fetch'])) {
|
||||
switch ($_GET['fetch']) {
|
||||
case 'getItemsSharedStatuses':
|
||||
$return = OCP\Share::getItemsSharedStatuses($_GET['itemType']);
|
||||
$return = OCP\Share::getItemsShared($_GET['itemType'], OCP\Share::FORMAT_STATUSES);
|
||||
($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
|
||||
break;
|
||||
case 'getItemShared':
|
||||
|
|
|
|||
|
|
@ -106,16 +106,6 @@ class Share {
|
|||
return self::getItems($itemType, $item, null, null, \OC_User::getUser(), $format);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the status of each shared item of item type owned by the current user
|
||||
* @param string Item type
|
||||
* @param int Number of items to return (optional) Returns all by default
|
||||
* @return array, item as key with a value of true if item has a private link or false
|
||||
*/
|
||||
public static function getItemsSharedStatuses($itemType, $limit = -1) {
|
||||
return self::getItems($itemType, null, null, null, \OC_User::getUser(), self::FORMAT_STATUSES, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Share an item with a user, group, or via private link
|
||||
* @param string Item type
|
||||
|
|
|
|||
Loading…
Reference in a new issue