Author: jchris
Date: Sun Jul  4 17:41:29 2010
New Revision: 960369

URL: http://svn.apache.org/viewvc?rev=960369&view=rev
Log:
_log should be an admin-only resource

Modified:
    couchdb/branches/0.11.x/src/couchdb/couch_httpd_misc_handlers.erl

Modified: couchdb/branches/0.11.x/src/couchdb/couch_httpd_misc_handlers.erl
URL: 
http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_httpd_misc_handlers.erl?rev=960369&r1=960368&r2=960369&view=diff
==============================================================================
--- couchdb/branches/0.11.x/src/couchdb/couch_httpd_misc_handlers.erl (original)
+++ couchdb/branches/0.11.x/src/couchdb/couch_httpd_misc_handlers.erl Sun Jul  
4 17:41:29 2010
@@ -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),


Reply via email to