2018-10-16 01:45:37 +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 = {
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* Default policy for all controllers and actions, unless overridden. *
|
|
|
|
* (`true` allows public access) *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2018-10-31 04:03:46 +00:00
|
|
|
'*': [
|
2018-10-31 18:54:38 +00:00
|
|
|
'passport'
|
2018-10-31 04:03:46 +00:00
|
|
|
],
|
2018-10-16 01:45:37 +00:00
|
|
|
|
2018-10-31 04:03:46 +00:00
|
|
|
AuthController: {
|
|
|
|
'*': [ 'passport' ]
|
|
|
|
}
|
|
|
|
}
|