Marcus Williams

Results 95 comments of Marcus Williams

Has there been any progress with this, could really do with being able to update passwords.

I'm using v1.4.4 I have a backbone app so yes it is using a rest api but the creation of models on ones that do and don't have the owner/createdBy...

OK I've found the problem. If you populate `owner` the CriteriaPolicy doesn't like it as the filter can't handle that it populated. ``` var permitted = data.reduce(function(memo, item) { criteria.some(function(crit)...

I would be happy to test but do you have any info on how to use it?

Ok just trying the permission criteria but it doesn't seem to have any effect. I have set the permission using ``` PermissionService.grant({ role: 'public', model: 'Product', action: 'read', criteria: {...

Yes I'm using a custom controller, I've just changed it to `res.ok` and that's made no difference and I've tried on the registered role and it's still the same. I'm...

OK below is the output of Permission.find() but I'm not sure what to look for to know if it's right. ``` { _context: { connections: { mongo_development: [Object] }, waterline:...

So this is the response... ``` [ { criteria: [ { blacklist: [ 'inventory' ], permission: '55a7b4efeed630c81a14e659', createdAt: '2015-07-16T13: 43: 11.118Z', updatedAt: '2015-07-16T13: 43: 11.118Z', id: '55a7b4efeed630c81a14e65a' } ], model:...

Yes I logged in as the registered user then made the request. But just found the cause. It was a combination of me missing adding the Criteria Policy to policy.js...