diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-18 11:33:43 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-06-23 12:04:50 +0000 |
commit | d1df66f7af7c46e12ccb78a60ec0e85ea0678ede (patch) | |
tree | 37a7c87100ff18700053506c1840522501fa9f44 /lib | |
parent | 9ce288163cb12398f1871cfd67b57c7ac5f95e58 (diff) | |
download | nextcloud-server-d1df66f7af7c46e12ccb78a60ec0e85ea0678ede.tar.gz nextcloud-server-d1df66f7af7c46e12ccb78a60ec0e85ea0678ede.zip |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-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); } |