UNPKG

@vph-garage/sails-interfuser

Version:

Automizing injection of your [custom Sails.JS] hook's MVC logics (models, controllers, helpers, services, config, policies, views, and assets) from the hook's directory [presuming default structure], or specified directories, into the end-product, Sails.J

31 lines (27 loc) 1.11 kB
/** * 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 = { /*************************************************************************** * * * Default policy for all controllers and actions, unless overridden. * * (`true` allows public access) * * * ***************************************************************************/ // '*': true, RuntimeController:{ // test controller allowing 'runtimeCtrlPolicyAllow': 'allowRuntime', // test controller denying 'runtimeCtrlPolicyDeny': 'denyRuntime', }, // standalone actions 'runtimeaction/act-policy-allow': 'allowRuntime', 'runtimeaction/act-policy-deny': 'denyRuntime', };