Skip to content

Commit 271bea2

Browse files
committed
Merge #298 [V32] Hotfix: with sharee enumeration disabled users shall be only searched by email anyways in this environment
2 parents 3cf91fa + 38e5de9 commit 271bea2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/private/Collaboration/Collaborators/UserPlugin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ public function __construct(
3333
}
3434

3535
public function search($search, $limit, $offset, ISearchResult $searchResult): bool {
36+
$result = ['wide' => [], 'exact' => []];
37+
$users = [];
38+
$hasMoreResults = false;
39+
40+
// Hotfix: with sharee enumeration disabled users shall be only searched by email anyways in this environment,
41+
// so for now return just empty results as those are also handled by the MailPlugin
42+
$type = new SearchResultType('users');
43+
$searchResult->addResultSet($type, $result['wide'], $result['exact']);
44+
return false;
45+
3646
/** @var IUser $currentUser */
3747
$currentUser = $this->userSession->getUser();
3848

0 commit comments

Comments
 (0)