diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-24 14:30:59 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-24 14:30:59 +0100 |
commit | d4f25b01b8d47cc354b0909f32153113e793494d (patch) | |
tree | 33bb1809af0c2ff07770a09e09c313ad6d390956 /apps/dav | |
parent | c235a40c94792ca5f921b4b7b29d17f679c4a497 (diff) | |
download | nextcloud-server-d4f25b01b8d47cc354b0909f32153113e793494d.tar.gz nextcloud-server-d4f25b01b8d47cc354b0909f32153113e793494d.zip |
Unify default value for restricting user enumeration with settings
If the value was never enabled or disabled, the settings show "Restrict
username enumeration to groups" as disabled. However, in some components
it was enabled by default, which caused an inconsistency in the
behaviour with respect to the settings, for example in the contacts
menu.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CardDAV/SystemAddressbook.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/SystemAddressbook.php b/apps/dav/lib/CardDAV/SystemAddressbook.php index 8246a8eebfa..b9d5ad5aebe 100644 --- a/apps/dav/lib/CardDAV/SystemAddressbook.php +++ b/apps/dav/lib/CardDAV/SystemAddressbook.php @@ -41,7 +41,7 @@ class SystemAddressbook extends AddressBook { public function getChildren() { $shareEnumeration = $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') === 'yes'; - $restrictShareEnumeration = $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'yes') === 'yes'; + $restrictShareEnumeration = $this->config->getAppValue('core', 'shareapi_restrict_user_enumeration_to_group', 'no') === 'yes'; if (!$shareEnumeration || ($shareEnumeration && $restrictShareEnumeration)) { return []; } |