Hi, 

There is something I didn't quite get in the Sync Function: how do I give a 
user access to a specific channel ?
What I would do is call: access (aUsername, "VIP_channel");

But where do I get this username ? Should I manually add a user_id property 
to all my documents and call  access (doc.user_id, "VIP_channel") ?
I am working on a iOS application that has 52 tables in the datamodel. A 
user in the local database has a Account table and all the other tables a 
children of the Account table (not directly, is sub-children etc, it's a 
tree). I would find it odd to manually add a user_id property to all theses 
52 tables since they all are related to a single Account table.

When my iOS app connects to the sync gateway, It gets back a Session. The 
session means that the user is granted access to the database. What I would 
have thought is that each document created during that Session would be 
automatically associated to the session's user. I would have made a 
difference between Couchbase users and application users.

To sum up I would like each user connected on its device to only have 
access to its tree like this :
<https://lh3.googleusercontent.com/-EFQ9osDLwms/VW14v-60qxI/AAAAAAAAM4o/4Jynjp2HKug/s1600/Capture%2Bd%25E2%2580%2599e%25CC%2581cran%2B2015-06-02%2Ba%25CC%2580%2B11.33.41.png>


There must be something I didn't get in the sync function spirit.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3a8ad46f-8e6c-4b38-bc58-9aefe9021f20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to