> On Jun 8, 2015, at 7:07 AM, Florion COIFFÉ <[email protected]> wrote:
> 
> I want to give all documents access to a specific channel. But I get 403 
> while pushing error telling me I don't have access to a channel.

It’s users that have to be given access to channels; documents are put in 
channels.
If you want to put all docs into a particular channel, just call 
channel(“thatChannel”) in the sync function.
If you want to give all users access to a channel, it’s easiest to add it to 
the admin_channels array when you create the user account.

> access("oliver", "mobileFor");
> requireAccess("mobileFor");

That’s an interesting case — it currently doesn't work, because the 
requireAccess() function checks the existing access, not the modifications made 
by access() calls. But it makes sense to have it behave the way you want — you 
could file an issue to get that changed.

—Jens

-- 
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/92A7F95C-774E-4C30-BC81-400E51FE1F25%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to