You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/09/03 20:23:28 UTC
chttpd commit: updated refs/heads/master to 549ebb4
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 <rn...@apache.org>
Authored: Wed Sep 3 19:23:12 2014 +0100
Committer: Robert Newson <rn...@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) ->