sec.securityInstalled() as Boolean
Returns fn:true() if security has been installed on the current database. Otherwise, returns false.
This function must be executed against the security database.
// Execute this against the security database. declareUpdate(); const sec = require('/MarkLogic/security'); sec.securityInstalled(); // Returns true if security has been installed on the current database, false otherwise.