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/06/12 12:40:52 UTC
chttpd commit: updated refs/heads/master to c6de373
Repository: couchdb-chttpd
Updated Branches:
refs/heads/master 3e09dea9b -> c6de373f8
Reopen futon to non-admins
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/c6de373f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/c6de373f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/c6de373f
Branch: refs/heads/master
Commit: c6de373f863a0550ebc7ce0f59da015b0ecdc9aa
Parents: 3e09dea
Author: Robert Newson <rn...@apache.org>
Authored: Thu Jun 12 11:39:35 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Jun 12 11:39:35 2014 +0100
----------------------------------------------------------------------
src/chttpd_auth_request.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/c6de373f/src/chttpd_auth_request.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_auth_request.erl b/src/chttpd_auth_request.erl
index f7b52f1..0c311a0 100644
--- a/src/chttpd_auth_request.erl
+++ b/src/chttpd_auth_request.erl
@@ -67,8 +67,8 @@ server_authorization_check(#httpd{path_parts=[<<"_stats">>]}=Req) ->
Req;
server_authorization_check(#httpd{path_parts=[<<"_active_tasks">>]}=Req) ->
Req;
-server_authorization_check(#httpd{method=Method, path_parts=[<<"_utils">>,
- <<"script">>|_]}=Req) when Method =:= 'HEAD' orelse Method =:= 'GET' ->
+server_authorization_check(#httpd{method=Method, path_parts=[<<"_utils">>|_]}=Req)
+ when Method =:= 'HEAD' orelse Method =:= 'GET' ->
Req;
server_authorization_check(#httpd{path_parts=[<<"_", _/binary>>|_]}=Req) ->
require_admin(Req).