couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram Neijt <>
Subject Re: Access validation for docs and views
Date Mon, 08 Nov 2010 19:44:54 GMT
I think I'm missing a part of this.

If you want a user to see only part of the document, would you not
create a view that only emits parts of the document?

I'm new at this, so could you write up an usage example for me?



On Mon, Nov 8, 2010 at 5:34 PM, Fedor Indutny <> wrote:
> Hi everyone!
> You've discussed earlier possibility of adding access validators to _design
> documents, this feature it's a kind of thing that many couchdb users will be
> glad to see.
> The conclusion of previous discussion was that we can't add this validators,
> because we actually won't be able to tell later, whether user can access
> _design/view or not.
> What if we could add *validate_view_**access *to _design document?
> It's not only fix of problem, I've mentioned above, but also a feature:
> You'll be able to allow user to access only view, without having an access
> to a full document.
> So, for example, views could show only *title* field of document, while *
> price* field will be hidden in a document itself.
> What do you think?
> --
> (Node.js, Ruby, Python, PHP developer)
> Fedor Indutny

View raw message