This is an automated email from the ASF dual-hosted git repository. jan pushed a commit to branch rebase/access-2023 in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit b5274b99fd1413629ea680ec348e44cde59c31fa Author: Jan Lehnardt <[email protected]> AuthorDate: Sat Aug 6 15:35:24 2022 +0200 fix(access): use minimal info from prev rev --- src/chttpd/src/chttpd_db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl index 2769d5979..7b12719b5 100644 --- a/src/chttpd/src/chttpd_db.erl +++ b/src/chttpd/src/chttpd_db.erl @@ -968,7 +968,7 @@ db_doc_req(#httpd{method = 'DELETE'} = Req, Db, DocId) -> Rev -> Body = {[{<<"_rev">>, ?l2b(Rev)}, {<<"_deleted">>, true}]} end, - Doc = Doc0#doc{revs=Revs,body=Body,deleted=true}, + Doc = #doc{revs=Revs,body=Body,deleted=true,access=Doc0#doc.access}, send_updated_doc(Req, Db, DocId, couch_doc_from_req(Req, Db, DocId, Doc)); db_doc_req(#httpd{method = 'GET', mochi_req = MochiReq} = Req, Db, DocId) -> #doc_query_args{
