Closed 509dave16 closed 6 years ago
Hey @509dave16 thanks for the very detailed bug report. Just a heads that I won’t be able to help myself any time soon, but I hope that one of the other contributors will be able to help out
@gr2m No problem. I think I found what the cause of the issue is since this happened across Hoodie, SuperLogin, and just a plain PouchDB client. PouchDB is somehow using the AuthSession Cookie of the localhost. So if you're logged into the Fouton portal for CouchDB then that AuthSession Cookie gets used. Made an issue in PouchDB repo: https://github.com/pouchdb/pouchdb/issues/7252. Hopefully this doesn't affect remote CouchDB instances. Haven't tested it though.
Closing this issue, since the problem was not with any particular library but with how I was accessing the CouchDB admin with the same hostname as what I was using in the CouchDB client.
Goal
Perform appropriate validation of operation on Document in a CouchDB
validate_doc_update
function handlerSummary
superlogin
package that handles creating per user databases when someone signs up.Expected
validate_doc_update
function handler should list the name and roles of the logged in userActual
validate_doc_update
function handler lists the name and roles of the Server AdminSettings
Request Body
Response Body