couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <>
Subject Re: doc `_user` member proposal
Date Wed, 27 Apr 2011 11:00:15 GMT
On Wed, Apr 27, 2011 at 12:54 PM, Robert Newson <> wrote:
> Is the purpose of this to just save adding a validate_doc_update that
> throws if doc._user !=
> B.
No my proposoal is adding this _user member to doc like _rev and _id,
so we can use it in validate_update functions, shows, changes filters
or anything where we can access to this property.

In case of a change filter we could restrict a feed to a user or if
the user is in group (would imply to pass the db security object to
the change filter, which we should do imo).

- benoit

View raw message