oreilly / couchdb-guide

CouchDB: The Definitive Guide
http://guide.couchdb.org/
502 stars 139 forks source link

Validation "Writing One" #516

Open Aoede opened 10 years ago

Aoede commented 10 years ago

In the sentence: "Above is the simplest possible validation function, which, when deployed, would allow all updates regardless of content or user roles. The converse, which never lets anyone do anything, looks like this: function(newDoc, oldDoc, userCtx) { throw({forbidden : 'no way'}); } " ...would allow all updates... should be: ...would deny all updates...

regards