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

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

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: View Server Support
    • Labels:
    • Skill Level:
      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

            • Assignee:
              Unassigned
              Reporter:
              gert gert cuykens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: