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.
Is it possible to give an access on the fly and do a require just after ?
(Like the following.-)
access("oliver", "mobileFor");
requireAccess("mobileFor");
I made it work by removing the requireAccess("mobileFor"), and after
syncing, I stop the Gateway, I add back the requireAccess("mobileFor") and
start again the Gateway.
After that change, the sync goes well. It is weird because that means I
can't create document when the user is new.
Thanks :)
My code is actually like this:
channel("mobileFor");
access(doc.owner, "mobileFor");
requireUser(doc.owner);
requireAccess("mobileFor");
--
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/a1f4f428-e426-4993-b2ed-0eaa42255649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.