couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to 549ebb4
Date Wed, 03 Sep 2014 18:23:28 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 6fa9b2d94 -> 549ebb4aa


_all_dbs does not require admin


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/549ebb4a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/549ebb4a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/549ebb4a

Branch: refs/heads/master
Commit: 549ebb4aa7731fdc6735121998ed8856656a07d0
Parents: 6fa9b2d
Author: Robert Newson <rnewson@apache.org>
Authored: Wed Sep 3 19:23:12 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Sep 3 19:23:12 2014 +0100

----------------------------------------------------------------------
 src/chttpd_auth_request.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/549ebb4a/src/chttpd_auth_request.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_auth_request.erl b/src/chttpd_auth_request.erl
index c9cc3a9..5d85cb0 100644
--- a/src/chttpd_auth_request.erl
+++ b/src/chttpd_auth_request.erl
@@ -33,6 +33,8 @@ authorize_request_int(#httpd{path_parts=[]}=Req) ->
     Req;
 authorize_request_int(#httpd{path_parts=[<<"favicon.ico">>|_]}=Req) ->
     Req;
+authorize_request_int(#httpd{path_parts=[<<"_all_dbs">>|_]}=Req) ->
+    Req;
 authorize_request_int(#httpd{path_parts=[<<"_replicator">>], method='PUT'}=Req)
->
     require_admin(Req);
 authorize_request_int(#httpd{path_parts=[<<"_replicator">>], method='DELETE'}=Req)
->


Mime
View raw message