CouchDB
  1. CouchDB
  2. COUCHDB-1478

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

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Trivial 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...}}"}

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development