Skip to content

Commit

Permalink
Merge pull request #318 from nextcloud/bugfix/noid/enum
Browse files Browse the repository at this point in the history
fix enum option
  • Loading branch information
ArtificialOwl authored Jul 9, 2019
2 parents c43ec75 + d8a0b69 commit 508e31b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/MembersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
14 changes: 14 additions & 0 deletions lib/Service/ConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 508e31b

Please sign in to comment.