Limit user to access document

0 votes
Hello, I have document with key "lock" and value is "1", i want all users can query this document but just only one can update value of key "lock" to "2" and then that key cannot be modify. Example, at the same time, there are 10 users send request update to server, i want check if value of that key is "1" the request will success, then 9 remains will fail (because value now is "2"). How can i do this?
asked Sep 19, 2016 in Unity by copangtnc (45 points)

1 Answer

0 votes
Hi,

As of now, if users have the write access to a document and have called insert or update APIs then the document will be added or updated as per the type of the request. The access to document can be restricted through our Grant/Revoke APIs but it must be called before calling insert/update APIs.

Please let me know if you have any other queries.

Regards,

Rajeev
answered Sep 22, 2016 by rajeev.etc (1,660 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...