> On Feb 3, 2015, at 8:16 AM, Seung Chan Lim <[email protected]> wrote: > > How about removing a user from a role? I'm not seeing any mention of that on > that page or on google. I assume you can't just manually edit the "roles" > attribute of the user account doc?
If the sync function adds a user to a role, that action is associated with that document. If the next edit of the document changes it such that the sync function no longer makes that role() call, then the user won't be added to the role anymore, so they won't have the role (unless something else is still giving to them.) What's actually going on is that every document has ACL metadata that lists what users should be given which roles, and access to which channels. This metadata is rewritten by the sync function every time the document is updated. The users' role memberships and channel access are computed by merging together the ACLs of all documents. —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/6CACFD69-3B19-416B-BC20-F322806C4E46%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
