mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
47227d7bd3
Changes: - Added a new config variable: `sails.config.custom.fleetSandboxWaitlistEnabled` - Added a new attribute to the website's `user` model: `inSandboxWaitlist` - Updated `signup.js` to create user accounts without a Fleet sandbox instance and `inSandboxWaitlist` set to true if `sails.config.custom.fleetSandboxWaitlistEnabled` is true. - Added /try-fleet/waitlist, a page that shows a message to users who have been added to the Fleet sandbox waitlist. - renamed`view-sandbox-teleporter-or-redirect-because-expired.js` to `view-sandbox-teleporter-or-redirect-because-expired-or-waitlist.js` and updated it to redirect users who are on the Fleet Sandbox waitlist to /try-fleet/waitlist Before this PR can be merged, we need to: - [x] Add `sails.config.custom.fleetSandboxWaitlistEnabled` config variable in Heroku. - [x] Add the new attribute to the user table in the website's database - [x] Update existing `user` records to have the new attribute (set to false) ..
64 lines
1.8 KiB
JavaScript
Vendored
64 lines
1.8 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',
|
|
|
|
// Bypass the `is-logged-in` policy for experiments, such as temporary landing pages.
|
|
'imagine/*': true,
|
|
|
|
// 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-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-or-waitlist': true,
|
|
'create-or-update-one-newsletter-subscription': true,
|
|
'unsubscribe-from-all-newsletters': true,
|
|
'view-osquery-table-details': true,
|
|
'view-connect-vanta': true,
|
|
'view-vanta-authorization': true,
|
|
'create-vanta-authorization-request': true,
|
|
'view-fleet-mdm': true,
|
|
'deliver-mdm-beta-signup': true,
|
|
'deliver-apple-csr': true,
|
|
'download-rss-feed': true,
|
|
'view-upgrade': true,
|
|
'deliver-premium-upgrade-form': true,
|
|
'view-compliance': true,
|
|
'view-osquery-management': true,
|
|
'view-vulnerability-management': true,
|
|
'deliver-mdm-demo-email': true,
|
|
'view-support': true,
|
|
};
|