diff options
author | Jiahui Li <54631519+jiahuili430@users.noreply.github.com> | 2021-05-25 17:18:24 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2021-05-27 18:14:28 -0400 |
commit | 0bd94653d19dd02c6eaaa4c5f749459a0c9f2a7c (patch) | |
tree | 5fcd43271f42bb2b5dcc03d58afea53ca051a111 /src/couch_mrview | |
parent | d623134c9fea8f5acdcd1eff46ed5e82e3ab89f9 (diff) | |
download | couchdb-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.erl | 5 |
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; |