Sorry, there's a lot to get your head around with Couchbase and Sync Gateway and channels and authorization, etc. I didn't see this particular question addressed in the online manual so I asked it here. I was just trying to find out what would happen if a user tried to do this sort of thing.
On Friday, November 6, 2015 at 12:41:31 PM UTC-7, Jens Alfke wrote: > > > On Nov 6, 2015, at 1:50 AM, Brendan Duddridge <[email protected] > <javascript:>> wrote: > > For example, say a username field is used to assign documents to channels > and a user edits the document JSON directly to change the username to > "fred" even though he's "steve" and then that document gets assigned to the > "fred" channel. Fred then downloads that document to their device because > Steve buggered up the document's username property? > > > That’s why the sync function has to do validation of incoming documents. > (I hate to say “RTFM”, but this is covered in the docs about the sync > function.) > > —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/74a517bf-55de-44f6-9915-6e6448a931d1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
