From 11513947397e10eb8cfd70bf880781cba270ad31 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 18 Jun 2020 11:33:43 +0200 Subject: Fix unit tests Signed-off-by: Joas Schilling --- lib/private/Collaboration/Collaborators/UserPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Collaboration') diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index 946baf687c5..123fa731445 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -153,7 +153,7 @@ class UserPlugin implements ISearchPlugin { if ($this->shareWithGroupOnly) { // Only add, if we have a common group - $commonGroups = array_intersect($userGroupIds, $this->groupManager->getUserGroupIds($user)); + $commonGroups = array_intersect($currentUserGroups, $this->groupManager->getUserGroupIds($user)); $addUser = !empty($commonGroups); } -- cgit v1.2.3