We have tried all the options for the lock method, the document is locked, but still, another user can able to update the document even though the lock is not yet released.
xdmp:lock-acquire("/inventory/hassan", "exclusive", "0", "This lock is acquiuired by admin user", 60)
We have another user called "shiv" with the "admin" role assigned to it, still, "shiv" user can execute the below function and modify the document even though the lock is not yet released.
xdmp:node-replace(doc("/inventory/hassan")//location, <location>ABC</location>)
We are using MarkLogic 10.0-.2.1
Please help me to find out what is wrong going on here.