Mark critical policies in standard query library. (#15070)
Closes: #14812 Changes: - Added a "critical" tag to critical policies in the standard query library. - Updated the macOS version used in the "Operating system up to date (macOS)" policy. - Updated the name of a policy to be in sentence case ("MDM Enrolled (macOS)" » "MDM enrolled (macOS)") - Updated the build-static-content script to add a `critical` attribute to queries that have the "critical" tag. - Updated the /queries page to add a "critical" badge to queries that have the critical attribute.
This commit is contained in:
+2
@@ -69,6 +69,8 @@ module.exports = {
|
||||
// If a query has a 'requires MDM' tag, we'll set requiresMDM to true for this query, and we'll ingore this tag.
|
||||
if(_.trim(tag.toLowerCase()) === 'mdm required'){
|
||||
query.requiresMdm = true;
|
||||
} else if(_.trim(tag.toLowerCase()) === 'critical') {
|
||||
query.critical = true;
|
||||
} else {
|
||||
// Removing any extra whitespace from tags and changing them to be in lower case.
|
||||
formattedTags.push(_.trim(tag.toLowerCase()));
|
||||
|
||||
Reference in New Issue
Block a user