mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Related to: https://github.com/fleetdm/confidential/issues/10737 Changes: - Added `docs/scripts.yml`, a YAML file that contains a list of scripts - Added `docs/mdm-commands.yml`, a YAML file that contains Windows and Apple MDM commands - Added `/mdm-commands`, a page that contains a list of MDM commands for Windows and Apple commands - Added `/scripts`, a page that contains a list of scripts - Updated the `<docs-nav-and-search>` component to have a link to the controls library, and reordered the lists. - Updated the build static content script to add the scripts and mdm commands from scripts.yml and mdm-commands.yml to the website's `builtStaticContent` configuration. - Updated the layout of the os-settings page to match the latest wireframes
83 lines
2.6 KiB
JavaScript
Vendored
83 lines
2.6 KiB
JavaScript
Vendored
/**
|
|
* Policy Mappings
|
|
* (sails.config.policies)
|
|
*
|
|
* Policies are simple functions which run **before** your actions.
|
|
*
|
|
* For more information on configuring policies, check out:
|
|
* https://sailsjs.com/docs/concepts/policies
|
|
*/
|
|
|
|
module.exports.policies = {
|
|
|
|
'*': 'is-logged-in',
|
|
'admin/*': 'is-super-admin',
|
|
'query-generator/*': 'has-query-generator-access',
|
|
'microsoft-proxy/*': 'is-cloud-customer',
|
|
// Bypass the `is-logged-in` policy for:
|
|
|
|
'entrance/*': true,
|
|
'webhooks/*': true,
|
|
'account/logout': true,
|
|
'view-homepage-or-redirect': true,
|
|
'view-faq': true,
|
|
'view-contact': true,
|
|
'view-pricing': true,
|
|
'legal/view-terms': true,
|
|
'legal/view-privacy': true,
|
|
'deliver-contact-form-message': true,
|
|
'view-query-detail': true,
|
|
'view-policy-details': true,
|
|
'view-query-library': true,
|
|
'view-policy-library': true,
|
|
'view-vital-details': true,
|
|
'docs/*': true,
|
|
'handbook/*': true,
|
|
'download-sitemap': true,
|
|
'view-transparency': true,
|
|
'view-press-kit': true,
|
|
'deliver-demo-signup': true,
|
|
'articles/*': true,
|
|
'reports/*': true,
|
|
'try-fleet/view-sandbox-teleporter-or-redirect-because-expired-or-waitlist': true,
|
|
'create-or-update-one-newsletter-subscription': true,
|
|
'unsubscribe-from-all-newsletters': true,
|
|
'unsubscribe-from-marketing-emails': true,
|
|
'view-osquery-table-details': true,
|
|
'view-connect-vanta': true,
|
|
'view-vanta-authorization': true,
|
|
'create-vanta-authorization-request': true,
|
|
'view-device-management': true,
|
|
'deliver-mdm-beta-signup': true,
|
|
'deliver-apple-csr': true,
|
|
'download-rss-feed': true,
|
|
'view-observability': true,
|
|
'view-software-management': true,
|
|
'deliver-mdm-demo-email': true,
|
|
'view-support': true,
|
|
'view-integrations': true,
|
|
'deliver-talk-to-us-form-submission': true,
|
|
'get-human-interpretation-from-osquery-sql': true,
|
|
'customers/view-new-license': true,
|
|
'redirect-vanta-authorization-request': true,
|
|
'view-deals': true,
|
|
'deliver-deal-registration-submission': true,
|
|
'get-est-device-certificate': true,
|
|
'view-testimonials': true,
|
|
'view-app-library': true,
|
|
'view-app-details': true,
|
|
'view-meetups': true,
|
|
'view-os-settings': true,
|
|
'view-scripts': true,
|
|
'view-script-details': true,
|
|
'view-command-details': true,
|
|
'view-mdm-commands': true,
|
|
'view-fleetctl-preview': true,
|
|
'get-llm-generated-configuration-profile': true,
|
|
'account/update-start-cta-visibility': true,
|
|
'microsoft-proxy/receive-redirect-from-microsoft': true,
|
|
'view-configuration-builder': true,
|
|
'android-proxy/*': true,
|
|
'microsoft-proxy/view-remediate': true,
|
|
'microsoft-proxy/view-turn-on-mdm': true,
|
|
};
|