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.07 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, AppController:{ // test controller allowing 'appCtrlPolicyAllow': 'allowApp', // test controller denying 'appCtrlPolicyDeny': 'denyApp', }, // standalone actions 'appaction/act-policy-allow': 'allowApp', 'appaction/act-policy-deny': 'denyApp', };