summaryrefslogtreecommitdiff
path: root/src/couch_mrview
diff options
context:
space:
mode:
authorJiahui Li <54631519+jiahuili430@users.noreply.github.com>2021-05-25 17:18:24 -0500
committerNick Vatamaniuc <nickva@users.noreply.github.com>2021-05-27 18:14:28 -0400
commit0bd94653d19dd02c6eaaa4c5f749459a0c9f2a7c (patch)
tree5fcd43271f42bb2b5dcc03d58afea53ca051a111 /src/couch_mrview
parentd623134c9fea8f5acdcd1eff46ed5e82e3ab89f9 (diff)
downloadcouchdb-0bd94653d19dd02c6eaaa4c5f749459a0c9f2a7c.tar.gz
move couch_httpd_auth options to chttpd_auth 3.x
Diffstat (limited to 'src/couch_mrview')
-rw-r--r--src/couch_mrview/src/couch_mrview_http.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/couch_mrview/src/couch_mrview_http.erl b/src/couch_mrview/src/couch_mrview_http.erl
index ff2b82de5..802739b82 100644
--- a/src/couch_mrview/src/couch_mrview_http.erl
+++ b/src/couch_mrview/src/couch_mrview_http.erl
@@ -197,8 +197,9 @@ is_public_fields_configured(Db) ->
DbName = ?b2l(couch_db:name(Db)),
case config:get("couch_httpd_auth", "authentication_db", "_users") of
DbName ->
- UsersDbPublic = config:get("couch_httpd_auth", "users_db_public", "false"),
- PublicFields = config:get("couch_httpd_auth", "public_fields"),
+ UsersDbPublic = chttpd_util:get_chttpd_auth_config(
+ "users_db_public", "false"),
+ PublicFields = chttpd_util:get_chttpd_auth_config("public_fields"),
case {UsersDbPublic, PublicFields} of
{"true", PublicFields} when PublicFields =/= undefined ->
true;