Skip to content

Commit a279e04

Browse files
Merge pull request #58988 from nextcloud/backport/58887/stable32
[stable32] fix(sharing): Align userid config key in UserPlugin with Manager
2 parents 24c1eb3 + f638865 commit a279e04

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎build/integration/features/bootstrap/ShareesContext.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function resetAppConfigs() {
2828
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match');
2929
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_email');
3030
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_dn');
31-
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_userid');
31+
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_full_match_user_id');
3232
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_to_group');
3333
$this->deleteServerConfig('core', 'shareapi_restrict_user_enumeration_to_phone');
3434
}

‎build/integration/sharees_features/sharees_user.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Feature: sharees_user
345345
And user "test2" belongs to group "groupA"
346346
And As an "test"
347347
And parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" is set to "no"
348-
And parameter "shareapi_restrict_user_enumeration_full_match_userid" of app "core" is set to "no"
348+
And parameter "shareapi_restrict_user_enumeration_full_match_user_id" of app "core" is set to "no"
349349
When getting sharees for
350350
| search | test1 |
351351
| itemType | file |

‎lib/private/Collaboration/Collaborators/UserPlugin.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
8383
// Even if normal sharee enumeration is not allowed, full matches are still allowed.
8484
$shareeEnumerationFullMatch = $this->appConfig->getValueString('core', 'shareapi_restrict_user_enumeration_full_match', 'yes') === 'yes';
8585
if ($shareeEnumerationFullMatch && $search !== '') {
86-
$shareeEnumerationFullMatchUserId = $this->appConfig->getValueString('core', 'shareapi_restrict_user_enumeration_full_match_userid', 'yes') === 'yes';
86+
$shareeEnumerationFullMatchUserId = $this->appConfig->getValueString('core', 'shareapi_restrict_user_enumeration_full_match_user_id', 'yes') === 'yes';
8787
$shareeEnumerationFullMatchEmail = $this->appConfig->getValueString('core', 'shareapi_restrict_user_enumeration_full_match_email', 'yes') === 'yes';
8888
$shareeEnumerationFullMatchIgnoreSecondDisplayName = $this->appConfig->getValueString('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_dn', 'no') === 'yes';
8989

0 commit comments

Comments
 (0)