couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: doc `_user` member proposal
Date Wed, 27 Apr 2011 11:07:38 GMT
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 <bchesneau@gmail.com> wrote:
> On Wed, Apr 27, 2011 at 12:54 PM, Robert Newson <robert.newson@gmail.com> 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
>

Mime
View raw message