Using the sync gateway REST API…
It seems like when a document is in a user’s channel, the user can not only read, but modify or delete the document, also. Is there a way make adoc read only?
Kind regards,
David
Using the sync gateway REST API…
It seems like when a document is in a user’s channel, the user can not only read, but modify or delete the document, also. Is there a way make adoc read only?
Kind regards,
David
Hi @dbergan,
In the sync function, the call to access
will give the user read access.
To give users write access, you can use requireAccess
, requireUser
, requireRole
. If the call to a require function fails, the write operation will be rejected.
This tutorial might also help.
James