diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-18 11:33:43 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-18 11:33:43 +0200 |
commit | 11513947397e10eb8cfd70bf880781cba270ad31 (patch) | |
tree | 4ca9f8cdf78f54d5e44705a0be5e0edb66092004 /lib/private/Collaboration | |
parent | 9ff7a9c38e57b51abdd8561535d91256bf95b086 (diff) | |
download | nextcloud-server-11513947397e10eb8cfd70bf880781cba270ad31.tar.gz nextcloud-server-11513947397e10eb8cfd70bf880781cba270ad31.zip |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r-- | lib/private/Collaboration/Collaborators/UserPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |