2020-12-02 20:48:03 +00:00
|
|
|
/**
|
|
|
|
* 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,
|
2021-08-06 07:52:02 +00:00
|
|
|
'webhooks/*': true,
|
2020-12-02 20:48:03 +00:00
|
|
|
'account/logout': true,
|
|
|
|
'view-homepage-or-redirect': true,
|
|
|
|
'view-faq': true,
|
|
|
|
'view-contact': true,
|
2021-03-31 23:08:36 +00:00
|
|
|
'view-get-started': true,
|
2021-04-01 00:24:42 +00:00
|
|
|
'view-pricing': true,
|
2020-12-02 20:48:03 +00:00
|
|
|
'legal/view-terms': true,
|
|
|
|
'legal/view-privacy': true,
|
|
|
|
'deliver-contact-form-message': true,
|
2021-05-10 04:48:59 +00:00
|
|
|
'view-query-detail': true,
|
2021-05-20 08:22:42 +00:00
|
|
|
'view-query-library': true,
|
|
|
|
'docs/*': true,
|
2021-05-26 08:24:38 +00:00
|
|
|
'handbook/*': true,
|
|
|
|
'download-sitemap': true,
|
2021-07-15 14:48:21 +00:00
|
|
|
'view-transparency': true,
|
2021-09-09 21:56:29 +00:00
|
|
|
'view-press-kit': true,
|
2022-01-25 03:40:16 +00:00
|
|
|
'view-platform': true,
|
2020-12-02 20:48:03 +00:00
|
|
|
|
|
|
|
};
|