From 4cc071868f6723fde0ed5c7d7e812e7ad3f19eb1 Mon Sep 17 00:00:00 2001 From: Szabolcs Gyuris Date: Fri, 12 Dec 2025 08:25:02 +0000 Subject: [PATCH] Patch for search ... --- lib/private/Collaboration/Collaborators/UserPlugin.php | 6 ++++++ 1 file changed, 6 insertions(+) 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();