Details
-
New Feature
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
1.3
-
None
-
Dont Know
Description
To my knowledge there is no easy way to validate a user for a single document attachment.
Can this be achieved by modifying the show handler so the following would return a attachment?
http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png
"shows":{"attachment":"function(doc,req){if(req.userCtx.name==doc._id)return {file:doc.attachment...}}"}