Skip to content

Commit ddda19e

Browse files
committed
Merge #298 [V32] Hotfix: with sharee enumeration disabled users shall be only searched by email anyways in this environment
2 parents 93f8e37 + 4cc0718 commit ddda19e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/private/Collaboration/Collaborators/UserPlugin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
6363
$users = [];
6464
$hasMoreResults = false;
6565

66+
// Hotfix: with sharee enumeration disabled users shall be only searched by email anyways in this environment,
67+
// so for now return just empty results as those are also handled by the MailPlugin
68+
$type = new SearchResultType('users');
69+
$searchResult->addResultSet($type, $result['wide'], $result['exact']);
70+
return false;
71+
6672
/** @var IUser */
6773
$currentUser = $this->userSession->getUser();
6874
$currentUserId = $currentUser->getUID();

0 commit comments

Comments
 (0)