Hm, I don't get it then. Why add a reserved field? doesn't 'user' work just as well for those folks that want write validation functions and/or replication filters?
B. On 27 April 2011 12:00, Benoit Chesneau <[email protected]> wrote: > On Wed, Apr 27, 2011 at 12:54 PM, Robert Newson <[email protected]> > wrote: >> Is the purpose of this to just save adding a validate_doc_update that >> throws if doc._user != userCtx.name? >> >> 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 >
