mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
9dbf84fb4b
* add osquery tables page * update build script, add fleet schema folder * update layout and page script * add edit-page button, search, remove test attribute from fleet schema * update styles * syntax highlighting, update highlight.js, adjust layout * lint fixes * Update view-osquery-tables.js * requested changes from 1:1 * requested changes - Rename osquery-tables to osquery-table-details & update routes and policies - Update wildcard input and tables details route - Fix lint error - adjust self-calling functions in page script - rename function and adjust the order of functions in page script * add osquery tables to builtStaticContent.markdownPages * update schema folder readme * add redirect for /tables * update table input * remove comment from stylesheet, update syntax highlighting, use variable names from colors.less * update inputs in view action * Updates from PR review * fix lint error * update syntax highlighting, table page styles * Update build-static-content.js * requested changes from code review * Update build-static-content.js * fix build script error * remove string.replaceAll() Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com> Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
48 lines
1.2 KiB
JavaScript
Vendored
48 lines
1.2 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',
|
|
|
|
// 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-get-started': true,
|
|
'view-pricing': true,
|
|
'legal/view-terms': true,
|
|
'legal/view-privacy': true,
|
|
'deliver-contact-form-message': true,
|
|
'view-query-detail': true,
|
|
'view-query-library': true,
|
|
'docs/*': true,
|
|
'handbook/*': true,
|
|
'download-sitemap': true,
|
|
'view-transparency': true,
|
|
'view-press-kit': true,
|
|
'view-platform': true,
|
|
'view-landing': true,
|
|
'deliver-demo-signup': true,
|
|
'articles/*': true,
|
|
'reports/*': true,
|
|
'view-sales-one-pager': true,
|
|
'try-fleet/view-register': true,
|
|
'try-fleet/view-sandbox-login': true,
|
|
'try-fleet/view-sandbox-teleporter-or-redirect-because-expired': true,
|
|
'create-or-update-one-newsletter-subscription': true,
|
|
'unsubscribe-from-all-newsletters': true,
|
|
'view-osquery-table-details': true,
|
|
|
|
};
|