[ 
https://issues.apache.org/jira/browse/COUCHDB-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Shorin updated COUCHDB-1478:
--------------------------------------

    Component/s:     (was: Database Core)
                 View Server Support
    
> http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png
> ----------------------------------------------------------------------------
>
>                 Key: COUCHDB-1478
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1478
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: View Server Support
>    Affects Versions: 1.3
>            Reporter: gert cuykens
>            Priority: Trivial
>              Labels: features
>
> 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...}}"}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to