From 1c451ba61f892f8f1a14df8315420a20b769ab8d 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index aa9ec26094ffe..309de1147cdf4 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -33,6 +33,16 @@ public function __construct( } public function search($search, $limit, $offset, ISearchResult $searchResult): bool { + $result = ['wide' => [], 'exact' => []]; + $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 */ $currentUser = $this->userSession->getUser();