xdmp:passive-has-privilege( $privileges as xs:string*, $kind as xs:string ) as xs:boolean
Tests whether the current user has at least one of a given set of privileges. Returns true if they do, false otherwise. Ignore undefined privileges.
Parameters | |
---|---|
privileges | The set of privilege URIs. These are the URIs for the privileges, not the names of the privileges. |
kind | The kind of privileges (either "execute" or "uri"). |
xdmp:passive-has-privilege("http://myprivs/function-foo", "execute") => true if the current user has the execute privilege on a privilege with the URI "http://myprivs/function-foo"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.