couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Klein <st.fankl...@gmail.com>
Subject Re: public_field: make sub-field visible
Date Mon, 09 Dec 2013 17:48:45 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message