This is an automated email from the ASF dual-hosted git repository.
big-r81 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new 6917dd8d2 Fix _search_cleanup and _nouveau_cleanup handlers
6917dd8d2 is described below
commit 6917dd8d266ffeb9998649b3ed801506adee0c54
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Sat Oct 3 01:56:51 2026 -0400
Fix _search_cleanup and _nouveau_cleanup handlers
Make them match _view_cleanup.
Co-Authored-By: Jan Lehnardt <[email protected]>
---
src/chttpd/src/chttpd_auth_request.erl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/chttpd/src/chttpd_auth_request.erl
b/src/chttpd/src/chttpd_auth_request.erl
index b30612037..b62958721 100644
--- a/src/chttpd/src/chttpd_auth_request.erl
+++ b/src/chttpd/src/chttpd_auth_request.erl
@@ -69,6 +69,10 @@ authorize_request_int(#httpd{path_parts = [_DbName,
<<"_compact">> | _]} = Req)
require_db_admin(Req);
authorize_request_int(#httpd{path_parts = [_DbName, <<"_view_cleanup">>]} =
Req) ->
require_db_admin(Req);
+authorize_request_int(#httpd{path_parts = [_DbName, <<"_search_cleanup">>]} =
Req) ->
+ require_db_admin(Req);
+authorize_request_int(#httpd{path_parts = [_DbName, <<"_nouveau_cleanup">>]} =
Req) ->
+ require_db_admin(Req);
authorize_request_int(#httpd{path_parts = [_DbName, <<"_sync_shards">>]} =
Req) ->
require_admin(Req);
authorize_request_int(#httpd{path_parts = [_DbName, <<"_purge">>]} = Req) ->