summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-07-04 17:22:22 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-07-04 17:22:22 +0000
commit899764527d215132205c4cbbbd03510aa785a49a (patch)
treeb94cdc75ec123e33ebca29738537569ae44d426c /src
parent95bebb5efa3302a1baf421b0c740a285982f0419 (diff)
_log should be an admin-only resource
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960363 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_misc_handlers.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl
index 70a28b48..205ebc6f 100644
--- a/src/couchdb/couch_httpd_misc_handlers.erl
+++ b/src/couchdb/couch_httpd_misc_handlers.erl
@@ -199,6 +199,7 @@ increment_update_seq_req(Req, _Db) ->
% httpd log handlers
handle_log_req(#httpd{method='GET'}=Req) ->
+ ok = couch_httpd:verify_is_server_admin(Req),
Bytes = list_to_integer(couch_httpd:qs_value(Req, "bytes", "1000")),
Offset = list_to_integer(couch_httpd:qs_value(Req, "offset", "0")),
Chunk = couch_log:read(Bytes, Offset),