```validate_doc_update``` moved from views to root Signed-off-by: Alexander Shorin <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/8de6b6e1 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/8de6b6e1 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/8de6b6e1 Branch: refs/heads/Query-Options-UI Commit: 8de6b6e1c36212dd6615633cd1fddae430da9775 Parents: 358901a Author: Anthony Ananich <[email protected]> Authored: Tue Feb 25 18:17:44 2014 +0200 Committer: Alexander Shorin <[email protected]> Committed: Tue Feb 25 20:22:20 2014 +0400 ---------------------------------------------------------------------- share/doc/src/query-server/javascript.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/8de6b6e1/share/doc/src/query-server/javascript.rst ---------------------------------------------------------------------- diff --git a/share/doc/src/query-server/javascript.rst b/share/doc/src/query-server/javascript.rst index 16590d6..386f9c5 100644 --- a/share/doc/src/query-server/javascript.rst +++ b/share/doc/src/query-server/javascript.rst @@ -273,12 +273,12 @@ The CommonJS module can be added to a design document, like so: "views": { "lib": { "security": "function user_context(userctx, secobj) { ... }" - }, - "validate_doc_update": "function(newdoc, olddoc, userctx, secobj) { - user = require('lib/security').user(userctx, secobj); - return user.is_admin(); - }" + } }, + "validate_doc_update": "function(newdoc, olddoc, userctx, secobj) { + user = require('lib/security').user(userctx, secobj); + return user.is_admin(); + }" "_id": "_design/test" }
