sec:privilege-exists( $action as xs:string, $kind as xs:string ) as xs: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.
xquery version "1.0-ml"; (: execute this against the security database :) import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:privilege-exists("http://marklogic.com/xdmp/privileges/get-privilege", "execute")