慕娘9325324
sails有个policy目录policies.js{ProfileController: {// Apply the 'isLoggedIn' policy to the 'edit' action of 'ProfileController'edit: 'isLoggedIn'// Apply the 'isAdmin' AND 'isLoggedIn' policies, in that order, to the 'create' actioncreate: ['isAdmin', 'isLoggedIn']}}里面可以写各种限制设置