Remove a fed share from the local table before trying to notify the remote server
This commit is contained in:
parent
1e1903e4fe
commit
040c541138
|
@ -473,6 +473,8 @@ class FederatedShareProvider implements IShareProvider {
|
||||||
|
|
||||||
$isOwner = false;
|
$isOwner = false;
|
||||||
|
|
||||||
|
$this->removeShareFromTable($share);
|
||||||
|
|
||||||
// if the local user is the owner we can send the unShare request directly...
|
// if the local user is the owner we can send the unShare request directly...
|
||||||
if ($this->userManager->userExists($share->getShareOwner())) {
|
if ($this->userManager->userExists($share->getShareOwner())) {
|
||||||
$this->notifications->sendRemoteUnShare($remote, $share->getId(), $share->getToken());
|
$this->notifications->sendRemoteUnShare($remote, $share->getId(), $share->getToken());
|
||||||
|
@ -494,8 +496,6 @@ class FederatedShareProvider implements IShareProvider {
|
||||||
}
|
}
|
||||||
$this->notifications->sendRevokeShare($remote, $remoteId, $share->getToken());
|
$this->notifications->sendRevokeShare($remote, $remoteId, $share->getToken());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->removeShareFromTable($share);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue