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,
|
|
|
|
'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-06 20:03:40 +00:00
|
|
|
'receive-usage-analytics': true,
|
2021-07-09 05:58:40 +00:00
|
|
|
'view-docs-template': true,
|
|
|
|
'view-documentation': true,
|
2020-12-02 20:48:03 +00:00
|
|
|
|
|
|
|
};
|