Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-07-15 19:35:05 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-07-15 19:51:00 +0300
commitad08968e3958031b2af251c0923aa000bdbabbaf (patch)
tree52bdabbbfdbdd8e46944584f122263b47a659509
parent5cb2fa2bc9e4de6b71a48ec45d853077ac251d65 (diff)
Fix local detection for global scale setup
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/Service/ParticipantService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 66df1f220..fd41bbcc8 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -413,7 +413,7 @@ class ParticipantService {
// FIXME use \OCA\Circles\Manager::getLink() in the future
$membersInCircle = $circle->getInheritedMembers();
foreach ($membersInCircle as $member) {
- if ($member->getUserType() === Member::TYPE_USER && $member->getUserId() === $userId) {
+ if ($member->isLocal() && $member->getUserType() === Member::TYPE_USER && $member->getUserId() === $userId) {
return $circle;
}
}