具有sails-permissions的标准许可

我已经创build了一个分配标准的权限,但是它总是导致一个404 Not found ,表明没有允许的logging。 从日志的输出中可以看出, criteria{ group: 1 } ,在group = 1地方有一条logging,所以应该返回一条logging,你可以看到permitted.lenth等于0 。 有谁熟悉的风帆权限能够build议这是否是正确的?

日志输出

 silly: PermissionPolicy: 1 permissions grant read on Issue for johnsmith info: responsePolicy silly: data [ { items: [ { owner: 1, group: 1, id: 1, title: 'An important issue', open: true, createdAt: '2015-08-24T18:17:32.580Z', updatedAt: '2015-08-24T18:17:32.586Z' }, { owner: 3, group: 2, id: 2, title: 'An issue belonging to another group', open: true, createdAt: '2015-08-24T18:17:32.582Z', updatedAt: '2015-08-24T18:17:32.582Z' } ], _pagination: { current: 1, limit: 30, items: 2, pages: 1 } } ] silly: options undefined silly: criteria! [ { where: { group: 1 }, permission: 45, createdAt: '2015-08-24T18:10:36.891Z', updatedAt: '2015-08-24T18:10:36.891Z', id: 1 } ] silly: permitted.length === 0 

这是由自定义find蓝图重新格式化数据结构,添加分页元{ items: [], _pagination: {...}} 。 这与查找蓝图(这是一个Array []期望sails-permissions相冲突。