Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0347F103FE for ; Mon, 9 Dec 2013 18:15:31 +0000 (UTC) Received: (qmail 82186 invoked by uid 500); 9 Dec 2013 18:15:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 82155 invoked by uid 500); 9 Dec 2013 18:15:29 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 82147 invoked by uid 99); 9 Dec 2013 18:15:29 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 18:15:29 +0000 Received: from localhost (HELO mail-ob0-f169.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 18:15:29 +0000 Received: by mail-ob0-f169.google.com with SMTP id wm4so4159928obc.28 for ; Mon, 09 Dec 2013 10:15:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jrFThfpp5zFu1FFzNIRcEuVkoBFBJ4SmivNv5+YI1bk=; b=hd8Mpd4acp3d4KrML2/62VegxzAj6tioqEqvKapF+zGdaUPHf406NTNMiLMu4yieoE MRzhfuke4SjaT3DYh4SB3H9c81E90I94EEGlaK/3fRBZN6z2YTcsphbjvwJfJ6VDV6Wc /fIBtDrj2IjoFlBvLyGAaMN/vg7TixCh6w1G6547pa/2fXGCW4CpsVO7rjqZVELkcPy8 YelhQYCsfaRloNoBDV2yJScMQZXdVd9w4HFumCvE6JSbE+aTpwWaXbzPCOEVpevnP3wC JwpM5bcEikslpfsBxSeVOJQQZewy6DoQnx80N9sd7mVmfDfjddBlafXZ0Hqr5R9F2uKU VOAw== MIME-Version: 1.0 X-Received: by 10.60.40.5 with SMTP id t5mr13343984oek.26.1386612928187; Mon, 09 Dec 2013 10:15:28 -0800 (PST) Received: by 10.76.26.6 with HTTP; Mon, 9 Dec 2013 10:15:28 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Dec 2013 18:15:28 +0000 Message-ID: Subject: Re: public_field: make sub-field visible From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Yeah, it only works on top level fields right now. B. On 9 December 2013 17:48, Stefan Klein wrote: > Sorry, hit send to fast. :( > > 2013/12/9 Stefan Klein > >> 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