diff options
author | Jan Lehnardt <jan@apache.org> | 2022-08-06 15:39:05 +0200 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2022-12-16 16:56:18 +0100 |
commit | fa8585c012edf1d216836589798ce185f2fc8412 (patch) | |
tree | ff64a1014b1531599d8a6e18853c1dfcabf1cf40 | |
parent | 3c5bdf42abbfab1d3d14ceef42e8655fd906189e (diff) | |
download | couchdb-fa8585c012edf1d216836589798ce185f2fc8412.tar.gz |
chore(access): style notes
-rw-r--r-- | src/couch/src/couch_db_updater.erl | 2 | ||||
-rw-r--r-- | src/couch/src/couch_httpd_auth.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl index 392f34b77..75b1afc92 100644 --- a/src/couch/src/couch_db_updater.erl +++ b/src/couch/src/couch_db_updater.erl @@ -824,7 +824,7 @@ validate_docs_access(Db, UserCtx, [Docs | DocRest], [OldInfo | OldInfoRest], Doc true -> % if valid, then send to DocsListValidated, OldDocsInfo % and store the access context on the new doc [{Client, Doc} | Acc]; - _Else2 -> % if invalid, then send_result tagged `access`(c.f. `conflict) + false -> % if invalid, then send_result tagged `access`(c.f. `conflict) % and don’t add to DLV, nor ODI send_result(Client, Doc, access), Acc diff --git a/src/couch/src/couch_httpd_auth.erl b/src/couch/src/couch_httpd_auth.erl index 2e62c8891..a6cffce39 100644 --- a/src/couch/src/couch_httpd_auth.erl +++ b/src/couch/src/couch_httpd_auth.erl @@ -103,7 +103,7 @@ extract_roles(UserProps) -> Roles = couch_util:get_value(<<"roles">>, UserProps, []), case lists:member(<<"_admin">>, Roles) of true -> Roles; - _ -> Roles ++ [<<"_users">>] + _ -> [<<"_users">> | Roles] end. default_authentication_handler(Req) -> |