diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index ffad426e15dd6..362fdeaa92731 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -63,6 +63,12 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b $users = []; $hasMoreResults = false; + // Hotfix: with sharee enumeration disabled users shall be only searched by email anyways in this environment, + // so for now return just empty results as those are also handled by the MailPlugin + $type = new SearchResultType('users'); + $searchResult->addResultSet($type, $result['wide'], $result['exact']); + return false; + /** @var IUser */ $currentUser = $this->userSession->getUser(); $currentUserId = $currentUser->getUID();