Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1478

http://127.0.0.1:5984/db/_design/validateCtx/_show/attachment/id?picture.png

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 1.3
    • None
    • View Server Support
    • 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...}}"}

      Attachments

        Activity

          People

            Unassigned Unassigned
            gert gert cuykens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: