aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/share/imanager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/share/imanager.php')
-rw-r--r--lib/public/share/imanager.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/public/share/imanager.php b/lib/public/share/imanager.php
index b2d9953e9ef..6919fea00de 100644
--- a/lib/public/share/imanager.php
+++ b/lib/public/share/imanager.php
@@ -101,14 +101,18 @@ interface IManager {
public function getSharedWith(IUser $user, $shareType, $node = null, $limit = 50, $offset = 0);
/**
- * Retrieve a share by the share id
+ * Retrieve a share by the share id.
+ * If the recipient is set make sure to retrieve the file for that user.
+ * This makes sure that if a user has moved/deleted a group share this
+ * is reflected.
*
* @param string $id
- * @return Share
+ * @param IUser|null $recipient
+ * @return IShare
* @throws ShareNotFound
* @since 9.0.0
*/
- public function getShareById($id);
+ public function getShareById($id, $recipient = null);
/**
* Get the share by token possible with password