Permalink
Browse files

_log should be an admin-only resource

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960363 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 95bebb5 commit 899764527d215132205c4cbbbd03510aa785a49a @jchris jchris committed Jul 4, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 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),

0 comments on commit 8997645

Please sign in to comment.