incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aravinda VK <hallimanearav...@gmail.com>
Subject Re: Write-only for users?
Date Mon, 14 Feb 2011 07:04:26 GMT
Sorry I missed a note, the example blog(http://hosabelaku.aravindavk.in) has
some issue with Internet explorer. (Didn't get the Windows machine to test
it and fix :) )

On Mon, Feb 14, 2011 at 12:30 PM, Aravinda VK <hallimanearavind@gmail.com>wrote:

> I had the similar situation while creating my photoblog. When user add
> comments to a blog then other users can see the sensitive informations like
> email.
>
> So my approach,
> Created the comments app as an independent system(Like Disqus)
> Added PHP layer to it and given read and write permission to Admin for
> comments database.
> The PHP layer acts as API server.
>
> When user adds comment, It will be submitted to PHP layer using JSONP(since
> cross domain).
> To load the comments, I just pass URL of blog/page to get comments related
> to that URL. (Email will be excluded by PHP layer while serving)
>
> My photoblog is created as couchapp, and gets comments from PHP layer using
> JSONP.
>
> Except for comment system, everything else is complete couchapp.
>
> Advantage here is, We can use the same comments system for multiple
> websites.
>
> You can visit the blog which I am talking about
> http://hosabelaku.aravindavk.in (This photoblog is in Kannada, Language of
> Karnataka, India http://en.wikipedia.org/wiki/Kannada)
>
> Source code is not shared yet. Need to cleanup the code bit. Will share
> once it is ready :)
>
> --
> Regards
> Aravinda | ಅರವಿಂದ
> http://aravindavk.in
>
> On Mon, Feb 14, 2011 at 3:22 AM, Jonathan Geddes <
> geddes.jonathan@gmail.com> wrote:
>
>> couchdb users,
>>
>> I'm thinking of using a couchapp for an upcoming project, but there is
>> one capability that I'm unsure of.
>>
>> I need a database that anyone can post to, but only admin can read
>> from. The requirement is to allow users to post personal information
>> that other users cannot see. If I understand the couchdb permissions
>> model correctly, for a given db, anyone who can create documents can
>> also read documents.
>>
>> Is there a way to do this with a couchapp? It seems a shame to have to
>> add "middleware" just to get this one capability.
>>
>> thanks,
>>
>> --Jonathan
>>
>
>
>
>
>


-- 
Regards
Aravinda | ಅರವಿಂದ
http://aravindavk.in

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message