sec.privilegeExists( action as String, kind as String ) as Boolean
This function returns true if the specified privilege exists.
Parameters | |
---|---|
action | The URI of the privilege. |
kind | The kind of privilege: "execute" or uri". |
http://marklogic.com/xdmp/privileges/get-privilege
This function must be executed against the security database.
// execute this against the security database const sec = require('/MarkLogic/security.xqy'); sec.privilegeExists("http://marklogic.com/xdmp/privileges/getPrivilege", "execute")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.