mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
35 lines
777 B
JavaScript
Vendored
35 lines
777 B
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,
|
|
'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,
|
|
'receive-usage-analytics': true,
|
|
|
|
|
|
};
|