diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-02-12 05:38:57 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-02-12 05:38:57 +0000 |
commit | 64a52c788a5b7efb633b8a09d495665ed9a976b7 (patch) | |
tree | 2e787ce0fde0a07e353279b2b5ab45f9691a39f5 /share/www/script/couch.js | |
parent | 15d10793a32a5fa57c80e9eab8803dc7d284ca6d (diff) |
move from _admins / _readers / _security to just a single _security object
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@909247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 4438a870..c5495424 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -263,16 +263,16 @@ function CouchDB(name, httpHeaders) { return JSON.parse(this.last_req.responseText); } - this.setAdmins = function(adminsArray) { - this.last_req = this.request("PUT", this.uri + "_admins",{ - body:JSON.stringify(adminsArray) + this.setSecObj = function(secObj) { + this.last_req = this.request("PUT", this.uri + "_security",{ + body:JSON.stringify(secObj) }); CouchDB.maybeThrowError(this.last_req); return JSON.parse(this.last_req.responseText); } - this.getAdmins = function() { - this.last_req = this.request("GET", this.uri + "_admins"); + this.getSecObj = function() { + this.last_req = this.request("GET", this.uri + "_security"); CouchDB.maybeThrowError(this.last_req); return JSON.parse(this.last_req.responseText); } |