You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Stefan Klein <st...@gmail.com> on 2013/12/09 18:43:34 UTC
public_field: make sub-field visible
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"
}
Re: public_field: make sub-field visible
Posted by Robert Newson <rn...@apache.org>.
Yeah, it only works on top level fields right now.
B.
On 9 December 2013 17:48, Stefan Klein <st...@gmail.com> wrote:
> Sorry, hit send to fast. :(
>
> 2013/12/9 Stefan Klein <st...@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
Re: public_field: make sub-field visible
Posted by Stefan Klein <st...@gmail.com>.
Sorry, hit send to fast. :(
2013/12/9 Stefan Klein <st...@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