diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-06-28 09:02:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 09:02:03 +0200 |
commit | b6397ef73a765be807efe363703f27013fd50d7a (patch) | |
tree | 31fedc1887b2b3b50e720f1e006f9693cd671cff /apps/federatedfilesharing | |
parent | 300f0965ae6528b370662ee39346bf6660aeaa5c (diff) | |
parent | 6670d3765881a1a7579bd96a523a90c2a52aec4a (diff) | |
download | nextcloud-server-b6397ef73a765be807efe363703f27013fd50d7a.tar.gz nextcloud-server-b6397ef73a765be807efe363703f27013fd50d7a.zip |
Merge pull request #236 from nextcloud/master-sync-upstream
[Master] sync upstream
Diffstat (limited to 'apps/federatedfilesharing')
-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 6f9b6644eed..40e2e8a472f 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -473,6 +473,8 @@ class FederatedShareProvider implements IShareProvider { $isOwner = false; + $this->removeShareFromTable($share); + // 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()); @@ -494,8 +496,6 @@ class FederatedShareProvider implements IShareProvider { } $this->notifications->sendRevokeShare($remote, $remoteId, $share->getToken()); } - - $this->removeShareFromTable($share); } /** |