You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2019/06/12 20:36:34 UTC
[couchdb-documentation] branch master updated: Fix typo (#419)
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
The following commit(s) were added to refs/heads/master by this push:
new 426c4d9 Fix typo (#419)
426c4d9 is described below
commit 426c4d9d1c5b7a5d1d96224f07df6a7496493e55
Author: tmdoit <tm...@digitaloak.it>
AuthorDate: Wed Jun 12 22:36:29 2019 +0200
Fix typo (#419)
---
src/query-server/javascript.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/query-server/javascript.rst b/src/query-server/javascript.rst
index 7f61394..2cd1acc 100644
--- a/src/query-server/javascript.rst
+++ b/src/query-server/javascript.rst
@@ -266,7 +266,7 @@ The CommonJS module can be added to a design document, like so:
}
},
"validate_doc_update": "function(newdoc, olddoc, userctx, secobj) {
- user = require('views/lib/security').user(userctx, secobj);
+ user = require('views/lib/security').user_context(userctx, secobj);
return user.is_admin();
}"
"_id": "_design/test"