couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: public_field: make sub-field visible
Date Mon, 09 Dec 2013 18:15:28 GMT
Yeah, it only works on top level fields right now.

B.


On 9 December 2013 17:48, Stefan Klein <st.fankl.in@gmail.com> wrote:
> Sorry, hit send to fast. :(
>
> 2013/12/9 Stefan Klein <st.fankl.in@gmail.com>
>
>> 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

Mime
View raw message