diff options
Diffstat (limited to 'lib/private/share20/manager.php')
-rw-r--r-- | lib/private/share20/manager.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php index 3935307b977..ea6463c745c 100644 --- a/lib/private/share20/manager.php +++ b/lib/private/share20/manager.php @@ -607,6 +607,22 @@ class Manager { /** + * Unshare a file as the recipient. + * This can be different from a regular delete for example when one of + * the users in a groups deletes that share. But the provider should + * handle this. + * + * @param IShare $share + * @param IUser $recipient + */ + public function deleteFromSelf(IShare $share, IUser $recipient) { + list($providerId, $id) = $this->splitFullId($share->getId()); + $provider = $this->factory->getProvider($providerId); + + $provider->deleteFromSelf($share, $recipient); + } + + /** * Get shares shared by (initiated) by the provided user. * * @param IUser $user |