diff options
author | Robert Newson <rnewson@apache.org> | 2018-10-11 17:13:46 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2018-10-11 17:13:48 +0100 |
commit | ce32d16d27b7827b4f479434a4c7c9efdc7f4384 (patch) | |
tree | ef0117337b6898765a4ea5e0fedc726edb6be1bb | |
parent | 959945575293244f948e887d6b0c42449fcdccd6 (diff) | |
download | couchdb-ce32d16d27b7827b4f479434a4c7c9efdc7f4384.tar.gz |
Pass user_ctx in _bulk_getbulk_get_users_db
This fixes _bulk_get for _users db and probably others I don't know
-rw-r--r-- | src/chttpd/src/chttpd_db.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl index 9cde6d907..d0a5a5b74 100644 --- a/src/chttpd/src/chttpd_db.erl +++ b/src/chttpd/src/chttpd_db.erl @@ -482,8 +482,9 @@ db_req(#httpd{method='POST', path_parts=[_, <<"_bulk_get">>]}=Req, Db) -> throw({bad_request, <<"Missing JSON list of 'docs'.">>}); Docs -> #doc_query_args{ - options = Options + options = Options0 } = bulk_get_parse_doc_query(Req), + Options = [{user_ctx, Req#httpd.user_ctx} | Options0], {ok, Resp} = start_json_response(Req, 200), send_chunk(Resp, <<"{\"results\": [">>), |