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 4e227e9ef90cc4eb86d7f789fd12524cef29f68d Author: Jan Lehnardt <[email protected]> AuthorDate: Sat Aug 6 12:52:17 2022 +0200 doc(access): leave todo for missing implementation detail --- src/couch/src/couch_db.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl index 9eb6aeb59..f0979d858 100644 --- a/src/couch/src/couch_db.erl +++ b/src/couch/src/couch_db.erl @@ -810,6 +810,8 @@ validate_access1(true, Db, #doc{meta=Meta}=Doc, Options) -> _False -> validate_access2(Db, Doc) end; _Else -> % only admins can read conflicted docs in _access dbs + % TODO: expand: if leaves agree on _access, then a user should be able + % to proceed normally, only if they disagree should this become admin-only case is_admin(Db) of true -> ok; _Else2 -> throw({forbidden, <<"document is in conflict">>})
