Here is a validation function signature in CouchDB:
function (newDoc, oldDoc, userCtx, secObj) {}
I wonder what the last argument is.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The wiki documentation for CouchDB’s Document Update Validation says this is “The security object of the database (introduced in CouchDB-0.11.1).”
This security object describes what admin/reader privileges have been set on the DB, details about its structure and meaning is given in the wiki’s Security Features Overview page.