summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-20 15:12:00 +0200
committerGitHub <noreply@github.com>2020-07-20 15:12:00 +0200
commit7db59de986747ceb1803535655c560bda4239c41 (patch)
tree91f0af7a89cd47737c5c39c3bd7f79f13e20279d
parent5bc160103d6c11b05485ce5e2a4ac0548a3b3114 (diff)
parent5edf707edd7e7df33a54d948bfa3126e27621947 (diff)
downloadnextcloud-server-7db59de986747ceb1803535655c560bda4239c41.tar.gz
nextcloud-server-7db59de986747ceb1803535655c560bda4239c41.zip
Merge pull request #21877 from nextcloud/backport/21855/stable18
[stable18] fix typo in revokeShare()
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index 575e3cdff57..0b3cb1fdab4 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -565,7 +565,7 @@ class FederatedShareProvider implements IShareProvider {
* @throws \OC\HintException
*/
protected function revokeShare($share, $isOwner) {
- if ($this->userManager->userExists($share->getShareOwner() && $this->userManager->userExists($share->getSharedBy()))) {
+ if ($this->userManager->userExists($share->getShareOwner()) && $this->userManager->userExists($share->getSharedBy())) {
// If both the owner and the initiator of the share are local users we don't have to notify anybody else
return;
}