Yeah, it only works on top level fields right now.

B.


On 9 December 2013 17:48, Stefan Klein <[email protected]> wrote:
> Sorry, hit send to fast. :(
>
> 2013/12/9 Stefan Klein <[email protected]>
>
>> Hi couch users,
>>
>> i got some application specific data in my user documents and have to make
>> one of the fields visible to other users.
>> public_field works fine, for top level fields. I try to make a sub field
>> visible.
>>
>> {
>> "_id": "org.couchdb.user:someuser",
>> "_rev": "somerev",
>> "appData" : {
>>     "field" : "should be visible",
>>     "secretfield" : "should not be visible"
>> }
>>
>
>
> i tried
> [couch_httpd_auth]
> public_fields = appData.field
>
> and
> public_fields = appData[field]
>
> both didn't work, so i guess it is not possible and public_fields only work
> on top level fields?
>
> Thanks,
> Stefan

Reply via email to