I think you want to use admin_channels instead of channels, ie: curl -X PUT http://localhost:4985/adb/_user/fede --data \ '{"name": "fede", "email":"[email protected]", "*admin_channels*":["*"], "role":"user", "password": "******"}'
On Thu, Jan 8, 2015 at 11:54 AM, Federico Hernandez < [email protected]> wrote: > > On Thursday, January 8, 2015 4:51:08 PM UTC-3, Jens Alfke wrote: >> >> If you can see the docs in the _changes output on the admin interface, >> but they don't replicate to the app, then the problem is probably with >> access privileges. Make sure the user account the app logs in as has access >> to at least one of the channels the docs are assigned to by the sync >> function. >> > > I'm using the following sync function: > > function (doc) { > channel(doc.channels); > } > > I created the user as following: > > curl -X PUT http://localhost:4985/adb/_user/fede --data \ '{"name": > "fede", "email":"[email protected]", "channels":["*"], "role":"user", > "password": "******"}' > > > > -- > 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/421ca1a7-63a7-4c3d-b000-a9dd364da55a%40googlegroups.com > <https://groups.google.com/d/msgid/mobile-couchbase/421ca1a7-63a7-4c3d-b000-a9dd364da55a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CACSSHCHquTMiz5oGUF3-qD8OTc3Opwv-EfqbjmUmiWwdxsiZUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
