summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_httpd.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index aa78ebb2..1e0bd9d4 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -24,7 +24,7 @@
-export([send_response/4,send_method_not_allowed/2,send_error/4, send_redirect/2]).
-export([send_json/2,send_json/3,send_json/4]).
-export([default_authentication_handler/1,special_test_authentication_handler/1]).
-
+-export([null_authentication_handler/1]).
start_link() ->
% read config and register for configuration changes
@@ -228,6 +228,8 @@ default_authentication_handler(Req) ->
end
end.
+null_authentication_handler(_Req) ->
+ #user_ctx{roles=[<<"_admin">>]}.
% Utilities