mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
00f30c1e84
* Move usage analytics action for the sake of convention * followup to ed4a500e159ac118018f8adb7279abdd59be6c24 to fix policy mapping * Add stub of webhook handler for GitHub bot (at this point, a mostly-verbatim copy paste of sailsbot -- will work backwards from this to what we actually need in Fleet) * Everyone can follow the same rules. Except bots. And Noah. * same as 5c97f47effaf72f15f5628c83b50f80781d46acd * replace a separate, explicit check for "sailsbot" * Comment out stuff Fleet is not using for the foreseeable future * use Fleet's green label color (could switch to "+" prefix as well, just would require tweaking)
37 lines
852 B
JavaScript
Vendored
37 lines
852 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,
|
|
'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-docs-template': true,
|
|
'view-documentation': true,
|
|
'view-transparency': true,
|
|
|
|
};
|