This is an automated email from the ASF dual-hosted git repository.

nickva pushed a commit to branch update-search-handlers
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 639c5f4aaa6941b1ac823b8692e839ba6629637a
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) ->

Reply via email to