Skip to content
Permalink
Browse files
Merge pull request #54 from shimaore/patch-1
Use the proper location for `require` example
  • Loading branch information
wohali committed Mar 20, 2017
2 parents 98068a8 + db67559 commit 2a2f88a54c97c47fda4ccb94f3e786185bbed199
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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('lib/security').user(userctx, secobj);
user = require('views/lib/security').user(userctx, secobj);
return user.is_admin();
}"
"_id": "_design/test"

0 comments on commit 2a2f88a

Please sign in to comment.