Skip to content
Snippets Groups Projects
Commit ae4dc346 authored by Julius Härtl's avatar Julius Härtl
Browse files

Return empty system addressbook since we cannot easily limit it to groups


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 0ef53ebc
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,9 @@ class SystemAddressbook extends AddressBook {
}
public function getChildren() {
if ($this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') !== 'yes') {
$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';
if (!$shareEnumeration || ($shareEnumeration && $restrictShareEnumeration)) {
return [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment