is this possible in couchdb? suppose i have a database 'tree node data', and several roles defined in the couchdb.
i'd like to be returned only those tree node documents that the current user may access. in general, i'd like to outsource my entire CMS' users and roles and permissions system to couchdb. is this possible, and if so, what's the best way to go about it?