|
|
|
@ -96,7 +96,10 @@ class ContactsStore implements IContactsStore {
|
|
|
|
|
* @return IEntry[]
|
|
|
|
|
*/
|
|
|
|
|
public function getContacts(IUser $user, $filter, ?int $limit = null, ?int $offset = null) {
|
|
|
|
|
$options = [];
|
|
|
|
|
$options = [
|
|
|
|
|
'enumeration' => $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') === 'yes',
|
|
|
|
|
'fullmatch' => $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match', 'yes') === 'yes',
|
|
|
|
|
];
|
|
|
|
|
if ($limit !== null) {
|
|
|
|
|
$options['limit'] = $limit;
|
|
|
|
|
}
|
|
|
|
@ -270,7 +273,9 @@ class ContactsStore implements IContactsStore {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$contacts = $this->contactsManager->search($shareWith, $filter);
|
|
|
|
|
$contacts = $this->contactsManager->search($shareWith, $filter, [
|
|
|
|
|
'strict_search' => true,
|
|
|
|
|
]);
|
|
|
|
|
$match = null;
|
|
|
|
|
|
|
|
|
|
foreach ($contacts as $contact) {
|
|
|
|
|