sec:unprotect-collection( $uri as xs:string ) as empty-sequence()
Removes the protection of a collection $uri. This does not remove the collection or any of its documents, but it does remove the protected collection from the security database.
Parameters | |
---|---|
uri | The URI of the collection from which to remove protections. |
http://marklogic.com/xdmp/privileges/unprotect-collection
If a protected collection with uri equal to $uri is not found, an error is raised.
This function must be executed against the security database.
(: execute this against the security database :) xquery version "1.0-ml"; import module namespace sec="http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:unprotect-collection("http://marklogic.com/dev_modules") (: Removes protection from the "dev_modules" collection. :)