couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject doc `_user` member proposal
Date Wed, 27 Apr 2011 10:31:14 GMT
hi all,

more and more I'm adding for validation purpose an author property ==
couchdb username in my docs . This is always the user connected and
I'm currenty asking myself if we couldn't do it automatically on doc
save/update.

We could add a _user member to the doc and have its value  equal to
name field in the user_ctx. So we can validate against it and compare
with the db security object in validation functions. What do you think
about it ?

- benoƮt

Mime
View raw message