diff --git a/lib/Controller/MembersController.php b/lib/Controller/MembersController.php index 29360486b..4a0acbd00 100644 --- a/lib/Controller/MembersController.php +++ b/lib/Controller/MembersController.php @@ -174,7 +174,7 @@ public function searchGlobal($search) { ); } - if ($this->configService->getAppValue('shareapi_allow_share_dialog_user_enumeration') !== 'yes') { + if ($this->configService->getCoreValue('shareapi_allow_share_dialog_user_enumeration') !== 'yes') { $result = array_filter( $result, function($data, $k) use ($search) { diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 5c6947201..26c6ac153 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -200,6 +200,20 @@ public function generateRemoteHost($remote) { } + /** + * Get a value by key + * + * @param string $key + * + * @return string + */ + public function getCoreValue($key) { + $defaultValue = null; + + return $this->config->getAppValue('core', $key, $defaultValue); + } + + /** * Get a value by key *