From 068b4a2cae0588fc1d5dfd09fc8df230c5e05459 Mon Sep 17 00:00:00 2001 From: SebastianKrupinski Date: Wed, 9 Sep 2026 07:33:26 -0400 Subject: [PATCH] fix: shareapi config key name Signed-off-by: SebastianKrupinski --- lib/Service/ContactsIntegration.php | 2 +- tests/Unit/Service/ContactsIntegrationTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/ContactsIntegration.php b/lib/Service/ContactsIntegration.php index 47b749aa7a..5220b15daf 100644 --- a/lib/Service/ContactsIntegration.php +++ b/lib/Service/ContactsIntegration.php @@ -182,7 +182,7 @@ private function search(string $userId, string $term, array $fields, ?bool $stri $shareeEnumerationInGroupOnly = $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'no') === 'yes'; $shareeEnumerationFullMatch = $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match', 'yes') === 'yes'; $shareeEnumerationFullMatchDisplayName = $shareeEnumerationFullMatch && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_displayname', 'yes') === 'yes'; - $shareeEnumerationFullMatchUserId = $shareeEnumerationFullMatch && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_userid', 'yes') === 'yes'; + $shareeEnumerationFullMatchUserId = $shareeEnumerationFullMatch && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_user_id', 'yes') === 'yes'; $shareeEnumerationFullMatchEmail = $shareeEnumerationFullMatch && $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_full_match_email', 'yes') === 'yes'; $options = [ diff --git a/tests/Unit/Service/ContactsIntegrationTest.php b/tests/Unit/Service/ContactsIntegrationTest.php index dbf9a32881..f88a9b56c8 100644 --- a/tests/Unit/Service/ContactsIntegrationTest.php +++ b/tests/Unit/Service/ContactsIntegrationTest.php @@ -351,7 +351,7 @@ public function common($term, $searchResult, $allowSystemUsers, $allowSystemUser ['core', 'shareapi_restrict_user_enumeration_to_group', 'no'], ['core', 'shareapi_restrict_user_enumeration_full_match', 'yes'], ['core', 'shareapi_restrict_user_enumeration_full_match_displayname', 'yes'], - ['core', 'shareapi_restrict_user_enumeration_full_match_userid', 'yes'], + ['core', 'shareapi_restrict_user_enumeration_full_match_user_id', 'yes'], ['core', 'shareapi_restrict_user_enumeration_full_match_email', 'yes'], ) ->willReturnOnConsecutiveCalls(