diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-06-07 16:36:26 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:29:29 +0200 |
commit | 84fc188dfc73ab16510bc80a6c091d1a017d4368 (patch) | |
tree | dbd39e7608c749aeb31498aa39d6cdd0185e3903 /apps/federatedfilesharing/lib/FederatedShareProvider.php | |
parent | 957b27f28267fd95bec9c8a041ca1e7be9d32aa6 (diff) | |
download | nextcloud-server-84fc188dfc73ab16510bc80a6c091d1a017d4368.tar.gz nextcloud-server-84fc188dfc73ab16510bc80a6c091d1a017d4368.zip |
some minor fixes and clode cleanup
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federatedfilesharing/lib/FederatedShareProvider.php')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index 27fbfeef619..5a12f8e9be3 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -506,13 +506,13 @@ class FederatedShareProvider implements IShareProvider { * Delete a share (owner unShares the file) * * @param IShare $share + * @throws ShareNotFound + * @throws \OC\HintException */ public function delete(IShare $share) { list(, $remote) = $this->addressHandler->splitUserRemote($share->getSharedWith()); - $isOwner = false; - // if the local user is the owner we can send the unShare request directly... if ($this->userManager->userExists($share->getShareOwner())) { $this->notifications->sendRemoteUnShare($remote, $share->getId(), $share->getToken()); |