Reputation: 3366
I'm searching for ways to customize ouputs of couch-db to non-authenticated users.
I found loads of documentation about validate_doc_update
- which implies that couchdb is aware of the user-context, and his roles.
but I'm looking for something like validate_doc_view
, or validate_doc_retrieve
, where I can see that the user is asking for documents or views that he should not get.
For example - in a forum - see private messages of other users.
Ideas?
Upvotes: 0
Views: 301
Reputation: 969
You can use lists and shows to filter with the req.userCTX: http://guide.couchdb.org/draft/transforming.html
Upvotes: 1